Created
August 18, 2018 23:40
-
-
Save trochepablo/9b94036c58b3a823528816b670bd9aae to your computer and use it in GitHub Desktop.
GoodForsakenRouter created by trochepablo - https://repl.it/@trochepablo/GoodForsakenRouter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class alimentos: | |
def alpiste(self): | |
return 4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pepita |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import alimentos | |
alimentos = alimentos.alimentos() | |
class pepita: | |
energia = 0 | |
def comer(self): | |
self.energia = self.energia + alimentos.alpiste() | |
# your code goes here | |
# test code | |
pepita = pepita() | |
pepita.comer() | |
print(pepita.energia) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment