Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Online Python compiler (interpreter) to run Python online.
- # Write Python 3 code in this online editor and run it.
- from datetime import date
- from random import randint
- def days_before_christmas():
- t = date.today()
- xmas = date(2021, 12, 25)
- return xmas-t
- def nd6(n):
- stack = [randint(0, 5)+1 for x in range(n)]
- return (sum(stack), stack)
- print(days_before_christmas())
- print(nd6(8))
Add Comment
Please, Sign In to add comment