subject

Why isnt this code working in PyCharm? Directions:
A social center is setting up a new mentoring program. The aim of the program is to match older
people with younger people in order to build mentor/mentee relationships. Several rooms have
been set up to serve as meeting spaces. When a person arrives at the social center, that person
is asked his name and then his age. Based on the age, that person will be directed to the
appropriate room as follows:
● Room A - Ages 10 and under and 80 and over
● Room B - Ages 11 to 20 and ages 70 to 79
● Room C - Ages 21 to 30 and ages 60 to 69
● Room D - Ages 31 to 40 and ages 50 to 59
● Room E - Ages 41 to 49

Code:

name = input("Hello! What is your name? ")
age = int(input("How old are you? "))

if age = 80:
print("Welcome " + name + ", you will be going to Room A")
elif (age > 11 or age 70 or age 21 and age = 60 or age <= 69):
print("Welcome " + name + ", you will be going to Room C")

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:00
Which of the following statements tests if students have a grade of 70 or above, as well as fewer than five absences? a: if(grade > = 70 and daysabsent < = 5): b: if(grade > = 70 or daysabsent < = 5): c: if(grade > 70 and daysabsent < = 5): d: if(grade > 70 or daysabsent < = 5): i took the test the answer is a
Answers: 1
question
Computers and Technology, 22.06.2019 15:20
The north and south regions had very diferent economies in the 1800s.
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
If you're using an existing powerpoint presentation that will receive new slides based on a word outline, select the a. slide that will appear after the new slides. b. first slide in the presentation. c. slide that will appear before the new slides. d. last slide in the presentation.
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
Append and make table queries are called queries. select complex simple action i think action
Answers: 1
You know the right answer?
Why isnt this code working in PyCharm? Directions:
A social center is setting up a new mentor...
Questions
question
Mathematics, 14.01.2021 02:50
question
Computers and Technology, 14.01.2021 02:50
question
Mathematics, 14.01.2021 02:50
question
History, 14.01.2021 02:50
question
Mathematics, 14.01.2021 02:50
question
Mathematics, 14.01.2021 02:50
Questions on the website: 13722359