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, 21.06.2019 19:10
Select the correct answer. emma, the quality control manager in a software development company, asks the testing team to check whether the user interface is friendly. to which type of testing is emma referring? a. usability testing b. data comparison c. validation testing d. stress testing e. destruction testing
Answers: 1
question
Computers and Technology, 22.06.2019 05:10
Read the code below. what will the computer print if the input for year_variable is 1700? if year_variable == 1776: print("your answer is correct. the declaration of independence was signed in “year_variable”.") elif year_variable < 1776: compute_variable = 1776 - year_variable. print("add “compute_variable“ years to your answer for the correct answer.") elif year_variable > 1776: compute_variable = year_variable - 1776 print("subtract “compute_variable” years from your answer for the correct answer.")
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
When is a chart legend used a. all the time b. whenever you are comparing data that is the same c. whenever you are comparing multiple sets of data d. only for hand-drawn charts
Answers: 2
question
Computers and Technology, 24.06.2019 02:30
Assume a class window with accessor method getwidth that accepts no parameters and returns an integer. assume further an array of 3 window elements named winarr, has been declared and initialized. write a sequence of statements that prints out the width of the widest window in the array.
Answers: 2
You know the right answer?
Why isnt this code working in PyCharm? Directions:
A social center is setting up a new mentor...
Questions
question
History, 18.09.2019 03:30
question
Computers and Technology, 18.09.2019 03:30
question
Mathematics, 18.09.2019 03:30
question
Mathematics, 18.09.2019 03:30
question
Mathematics, 18.09.2019 03:30