لما بكتب الكود بيظهر خطا فيsynax

Phone_number = input("what is the phone number\")
if phone_number >=18:
 print ("you can use app")
elese phone_number <18:
 print("you can't use app")

:wave: Welcome @Mohamed-Elsaye8!

Here is the code with correct syntax:

phone_number = input("what is the phone number")
if phone_number >= 18:
    print("you can use this app")
else:
    print("you can't use this app")

I fixed the Phone_number variable name, removed the \ in the input, and replaced elese with else.

But do you mean age instead of phone number?

1 Like