GithubHelp home page GithubHelp logo

empty-project's Introduction

Requerimientos

Usuario

  1. Puedo crear una instancia de usuario
user = User()
  1. Puedo asignar nombre y apellido a ese usuario, así como obtener su nombre completo
user.firstname = "John"
user.lastname = "Doe"
print(user.get_fullname())
# John Doe
  1. Puedo asignar un año de nacimiento al usuario y obtener su edad
user.birth_year = 2000
print(user.get_age())
# 22

Mascota

  1. Puedo crear una instancia de mascota, esta puede ser perro o gato. Con esta acción le asigno un tipo y un sonido a mi mascota.
pet = Dog()
print(pet.type, pet.sound) # "dog", "barks"
pet = Cat()
print(pet.type, pet.sound) # "cat", "meows"
  1. Puedo asignar un nombre a esa mascota y saber con que sonido saluda
pet.name = "Firulais"
print(pet.greet())
# "Firulais barks"

Interacciones

  1. Puedo asignar una mascota a un usuario y saber que es
user.pet = pet
print(user.which_pet())
# "Firulais is a dog"
  1. El usuario recibe saludos de su mascota
print(user.pet_greet())
# Firulais barks, when John Doe arrives!

empty-project's People

Contributors

vampaynani avatar danna-lucia avatar joel-om29 avatar chukybb avatar mclodv avatar

Stargazers

Roman avatar

Watchers

 avatar James Cloos 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.