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 23:30
What does 21 pilots middle aged name as a band 15 years prior to them naming their band 21 pilots?
Answers: 1
question
Computers and Technology, 23.06.2019 15:30
The song about casey jones a railroad engineer who gives his life on the job would most likely gall under the folk song category of? a-work song b-nonsense song c-religious song d-ballad
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
What are some settings you can control when formatting columns?
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Will this setup result in what kathy wants to print?
Answers: 2
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
Advanced Placement (AP), 25.08.2019 16:50
question
Mathematics, 25.08.2019 16:50
Questions on the website: 13722363