Pattykita@PattykitaNV 1
FUNDAMENTOS DE PROGRAMACIÓN10 oct
if: tu primera condición — necesito ayuda
Fundamentos de Programación · La Encrucijada del Destino · if: tu primera condición
Is anyone having problems with the Programming-Fundamentals - IF: your first condition exercise??? I don't know what's wrong
to check if someone can pass by age
age = 20 if age >= 18: print("You may pass") else: print("You may not pass") print("Done")
and without else
to check if someone can pass by age
age = 20 if age >= 18: print("You may pass") print("Done")
PYTHONmain.py
# to check if someone can pass by age
age = 20
if age >= 18:
print("You may pass")
else:
print("You may not pass")
print("Done")