0
Payton
How to set several conditions to if statement in pyton
13 Respuestas
0
Simply:
if(x<5 and x==2):
#what you want to do here
+ 4
It's Python by the way.
+ 1
use the actual words' --and, or--'
if condition1 and condition2 and condition3 etc:
if condition1 or condition2 or condition3: etc.
0
Use proper tags, and at least write correctly write the name of the language.
0
Sorry, I asked a specific question. I am not an Englishman and I am generally -16 and I have English income. And what is not clear, if, statements, a lot?
0
I don't understand you question, you can try writing it in your native language and wait for someone to answer
0
I already did this and no one answered, that's why I wrote in English
0
Thanks
0
If you can write in more details what you want I may be able to help
0
Here is just an if statement: if x <5: print ("hello"). here is one condition (x <5). but how to make more conditions, for example, so that if x <5 and x == 2 hello is displayed
0
Ok thank you
0
Np