Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- year = int(input("Enter a year to check leap or not: "))
- if year % 4 == 0:
- if year % 100 == 0 and year % 400 != 0:
- print("Not a leap year")
- else:
- print("Leap Year")
- else:
- print("Not a leap year")
- n = 5
- while n < 10:
- print(n)
- n += 1 # n = n + 1
- response = input("What do you want to do?")
- while response != "exit":
- if response == "music":
- print("Opening Spotify")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement