#making a program
23 messages · Page 1 of 1 (latest)
if age >= 12 and < 18:
and as well as or delineate distinct conditions. So you need to specify the variable in each condition in the statement. Like this
if age >= 12 and age < 18:
Additionally you can chain the greater than, less than, greater than or equal to, and less than or equal to. Like this
if 12 <= age < 18:
@unborn iron
So if number1 == 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 or 0 : should be if number1 == "1" or number1 == "2" or number1 == "3" or number1 == "4" or number1 == "5" or number1 == "6" or number1 == "7" or number1 == "8" or number1 == "9" or number1 == "0":
But of course that's stupid to do
Ik , i only know if statement and data structure in python
I am still learning
Is there any other problem in my code
A much better way is to use in, or the built in isdigit, isnumeric, or isdecimal
What r they
I have really less knowledge 😅
I am learning python from a Crouse
But i wanted to make this project
And i used my all knowledge to in it
So can u tell me is there any other mistake in my code
There are a lot
😅
But I need to get ready to sleep soon so I won't have time to go through them
Can u tell me one mistake that is giving me the error