0

Plz help me. Is there something wrong with this code? And if you, plz send me the code.

print (" what is your age ") inp(input(<= 18)) true print (" you can have a license ") false print ("u cant have a licence")

8th May 2023, 11:16 AM
Omar Shahzad Nayyar
Omar Shahzad Nayyar - avatar
4 Answers
+ 6
Your code has no logic. Complete sololearn’s python course before making codes.
8th May 2023, 11:19 AM
Ugulberto SĂĄnchez
Ugulberto SĂĄnchez - avatar
+ 5
A correction of your code might be this: age = int(input(“What is your age? ”)) if (age >= 18): print(“You can have a license”) else: print(“You can’t have a license”)
8th May 2023, 11:20 AM
Ugulberto SĂĄnchez
Ugulberto SĂĄnchez - avatar
+ 2
I repeat, complete sololearn’s python course before asking everything
8th May 2023, 11:21 AM
Ugulberto SĂĄnchez
Ugulberto SĂĄnchez - avatar
+ 2
Thanks bro
8th May 2023, 11:24 AM
Omar Shahzad Nayyar
Omar Shahzad Nayyar - avatar