Guest User

Untitled

a guest
Apr 24th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import datetime
  2. # Split today's date into three parts, year, month, day, and put them in a list called today.
  3. today = [int(datepart) for datepart in str(datetime.date.today()).split('-')]
  4. n = 50 # the number of combinations
  5. f = 1234 # change this to your secret number
  6. for num in today:
  7. print (num * f) % (n+1)
Add Comment
Please, Sign In to add comment