Created
April 27, 2017 08:53
-
-
Save ak4zh/e255ddc8fdac828ea6bc66d63c87d771 to your computer and use it in GitHub Desktop.
how_to_make_egg.py
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 time | |
import random | |
room = ('rooster', 'hen') #must be tuple | |
effort = random.randint(5,10) | |
egg = 0 | |
for times in range(effort): | |
egg += round((len(room[0]) / len(room[1])) + (len(room[1]) / len(room[0]))) | |
time.sleep(2) #don't worry time is not too less, there's a reason rooster is called cock | |
#change time as per your rooster | |
#depends on effort | |
print('You made ' + str(egg) + ' eggs') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment