Advertisement
big_cee223

B6529550_g2_a2_w8

Oct 2nd, 2022 (edited)
785
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. #B6529550_ยงวุฒิ พัฒนะคุณกนก_Group 2_#36
  2.  
  3. import random
  4. def sumPID():
  5.     global idnum
  6.     idnum=random.randrange(1000000000000,9999999999999)
  7.     print(f'Your personal ID is : {idnum}')
  8. def getFortune():
  9.     fortune=random.randrange(0,99)
  10.     print(f'The summation is {fortune}')
  11.     if fortune%2==0:
  12.         print('Your fortune is very good')
  13.     else:
  14.         print('Your fortune is good')
  15. sumPID()  
  16. getFortune()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement