Advertisement
DrAungWinHtut

lucky_test.py

Jul 19th, 2023
953
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. def lucky_test():
  2.     num = eval(input('please enter any integer number: '))
  3.     ans = num % 3
  4.     if ans == 0:
  5.         print("Bad Luck")
  6.     elif ans == 1:
  7.         print("Normal")
  8.     else:
  9.         print("Lucky")
  10.  
  11.  
  12. def start():
  13.     print('1-baydin app')
  14.     print('2-exit')
  15.     choice = input('what is your choice? ')
  16.     if choice == '1':
  17.         lucky_test()
  18.         start()
  19.     else:
  20.         print('exiting...')
  21.         exit()
  22.    
  23.  
  24.    
  25. # Start here
  26. start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement