subject

Write an if-else statement in Python that compares the variable age with 18 and adds 1 to the variable adults if age is greater than or equal to 18, and adds 1 to the variable minors otherwise. Assume the variables (age, adults and minors) are already defined.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 21:00
Ulia is planning to attend the same private four-year college her parents attended. she wants to save at least $18,000 in four years to contribute to her college education. which monthly deposit amounts can julia use to achieve her goal? check all that apply.
Answers: 2
question
Computers and Technology, 23.06.2019 02:30
People with high self-esteem: accept their strengths and weaknesses. believe that failed experiences are failures of their whole self. feel good about who they are only when they reach total success. need positive external experiences to counteract negative feelings that constantly plague them.
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
In three to five sentences, describe how you can organize written information logically and sequentially
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Your mom wants to purchase a laptop computer. she said she wants her new computer to be able to play her dvds so she can listen to music and wants to know what type of optical drives will play her disk. which type of drive should she look for?
Answers: 1
You know the right answer?
Write an if-else statement in Python that compares the variable age with 18 and adds 1 to the variab...
Questions
question
Mathematics, 15.07.2021 06:40
question
Mathematics, 15.07.2021 06:40
question
English, 15.07.2021 06:40
question
Mathematics, 15.07.2021 06:40
Questions on the website: 13722361