Question: = = = = = = = = = = = = = = = A person is eligible to be a US senator if

===============
A person is eligible to be a US senator if they are at least 30 years old
and have been a US citizen for at least 9 years. To be a US representative
these numbers are 25 and 7, respectively. Write a program that accepts a
person's age and years of citizenship as input and outputs their eligibility
for the Senate and House.
# Ask for the person's age and years of citizenship
age = int(input(Enter the person's age: ))
years_of_citizenship == str(input("Enter the person's years of citizenship: "))
# Check eligibility for the Senate and House using the respective functions
senate_eligibility = checkSenateEligibility(age, years_of_citizenship)
house_eligibility = checkHouseEligibility(age, years_of_ctizenship)
# Display the eligibility for the Senate and House
print("Senate Eligibility:", senate_eligibility)
print("House Eligibility:", house_eligibility)
-- Fix All of the Mistakes
 =============== A person is eligible to be a US senator if

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!