Write a program that asks for the users age based on their


Python assignment: Write a program that asks for the user's age. Based on their response print "You can vote" (18 years old or older) or "You can't vote" and also whether or not he/she is a senior citizen (over 64). If senior citizen print "You're a Senior Citizen...you deserve two votes"! Use the Idle editor and don't forget the .py extension.

Variables should be meaningful. Example: Use Quarters instead of Q!

Make sure you include the following code so the output of your program will remain on the screen until the user hits return.

endofprogram = input("Please hit enter to exit from this program:")

Solution Preview :

Prepared by a verified Expert
Python Programming: Write a program that asks for the users age based on their
Reference No:- TGS01669014

Now Priced at $35 (50% Discount)

Recommended (92%)

Rated (4.4/5)