Answer to Question #104346 in Python for Srana

Question #104346
Write an if/else statement that adds 1 to minors if age is less than 18, adds 1 to adults if age is 18 through 64 and adds 1 to seniors if age is 65 or older.
1
Expert's answer
2020-03-02T09:53:33-0500
if age < 18:
    minors += 1
elif age < 65:
    adults += 1
else:
    seniors += 1

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS