Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Name: Manish Raj Silwal
- #PART 1
- #Exercise 4.2
- PrimarySchoolAge = 4
- LegalVotingAge = 16
- AgeForPresident = 30
- RetirementAge = 60
- YourAge = int(input("Enter your age: "))
- if(YourAge<PrimarySchoolAge):
- print("Too Young")
- elif(YourAge>=PrimarySchoolAge):
- if(YourAge>=LegalVotingAge):
- print("Remember to Vote")
- if(YourAge>=AgeForPresident):
- print("Vote me")
- if(YourAge>=RetirementAge):
- print("Too Old")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement