Skip to content

Instantly share code, notes, and snippets.

@ak4zh
Created April 27, 2017 08:53
Show Gist options
  • Save ak4zh/e255ddc8fdac828ea6bc66d63c87d771 to your computer and use it in GitHub Desktop.
Save ak4zh/e255ddc8fdac828ea6bc66d63c87d771 to your computer and use it in GitHub Desktop.
how_to_make_egg.py
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