Giter Club home page Giter Club logo

2021-12-workshop-python-geekshubs-reto-01's Introduction

2021-12-workshop-python-reto-01

image

Superhero Assistant Challenge

Welcome to the challenge 1, due to the increase in crime in our city the local superhero needs to reinforce his team with an assistant.

For this reason, an interview must be carried out with 5 possible candidates. The following properties will be valued for each of them:

  • name
  • power
  • secretName
  • city
  • location

On the other hand, each applicant must have the ability to increase her power at certain times, if the situation requires it by calling the maxPower function.

For all this, it is requested to create a superhero object that meets the aforementioned requirements. Create as many instances as you need.

Remember that you can find clues to solve the challenge in the same repository.

The requirement

Feel free to make any changes to the superHero class and add any necessary code, as long as everything follows the requirements outlined. However, *** don't alter the main.py class or its properties *** as this lets us know if the interviews are working properly.

Final notes

To clarify: a candidate can never have a power lower than 1024. All attributes and methods created must be public.

Help

  • pip install -e .
  • pip install pytest
  • python3 -m pytest test/TestSuperHero.py

2021-12-workshop-python-geekshubs-reto-01's People

Contributors

jofaval avatar jomarindev avatar josemarin avatar marcosgeekhubs avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.