Advertisement
otorp2

basic python return

Jan 26th, 2016
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import random
  2.  
  3. def get_answer(answer_Number):
  4. if answer_Number == 1:
  5. print("lo")
  6.  
  7. elif answer_Number == 2:
  8. print("koko")
  9. elif answer_Number == 3:
  10. print("jhfdsfghjk")
  11.  
  12. r = random.randint(1,3)
  13. fortune = get_answer(r)
  14. print(fortune)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement