0
Python core exercise (task ) or bug -Club access man older 18 y.o.
I found bug in Python core. And cannot resolve it. I cannot find mistake. age = int(input()) name = input() if age >= 18: print("welcome : ", name) else: print("sorry") The application says that it matches three answers good, but it still doesn’t fit completely for 4 and 5 example . I don't understand where the error is. Is there at least one person here who can tell me where the error is, why I can’t go further, although I think that the answer is correct. You can Find it Python Core course -> control structures-> Statement ELSE -> practice
4 Respuestas
+ 5
Андрей Рыбаков ,
Check the print statement...put exactly what they given within print statement...eg:- first letter caps or space like that...
May be that too results in test case fail....
+ 5
It appears the program output does not match exactly what Code Coach is looking for.
Here is the task description from Python Core > else statement:
else Statement
Write a program to control entrance to a club.
Only people who are 18 or older are allowed to
enter the club.
The given program takes the age and the name
of the person who tries to enter. Complete the
program to output "Welcome" followed by the
name of the person if they are allowed to enter
the club, and "Sorry" if they are younger than the
allowed age.
Sample Input
24
James
Sample Output
Welcome James
Do not forget to put a space between
"Welcome" and the name.
+ 3
Matěj Jonáš ,
you may not find this exercise because if is part of the python tutotial `python core`.
this tutorial is currently not available.
0
where exactly can i find the excercise?