- 1
Ya no se que poner para que me salgan correctos el codigo para control facial
age = int(input()) ifage>=18: print("Allowed") else age < 18: print ("Sorry")
3 odpowiedzi
+ 2
Please DO NOT PUT CODE IN THE TAG SECTION. Put "python" in the tag section.
* check the indentation of the code
* there is a blank space missing between "if" and "age"
* "else" does not take any condition. Remove "age < 18"
+ 1
Find four differences:
age = int(input())
if age>=18:
print("Allowed")
elif age < 18:
print ("Sorry")
0
Gracias funciono