Thursday, 21 January 2016
13 Comecocos (aleatorial)
# 13 COMECOCOS (aleatorial)
import random
a=0
while a<1:
print ('A number from 1 to 7')
print ('')
answerNumber = input()
def getAnswer(answerNumber):
if answerNumber == 1:
return('Tidy up your bedroom')
elif answerNumber == 2:
return('Help with the laundry')
elif answerNumber == 3:
return('Call your best friend')
elif answerNumber == 4:
return('Write a poem')
elif answerNumber == 5:
return('Don´t think for 2 minutes')
elif answerNumber == 6:
return ('Dance crazily for 2 minutes')
else:
print ('That is not a valid number, you poo!!!!')
r= random.randint (1,7)
fortune = getAnswer(r)
print (fortune)
print ('')