So no 2 if can use together without nested? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

So no 2 if can use together without nested?

6th Apr 2019, 5:50 PM
Aditya Verma
Aditya Verma - avatar
3 Answers
+ 2
Please try to provide some context for your questions. It's not really clear what you want to know https://www.sololearn.com/discuss/1316935/?ref=app
6th Apr 2019, 6:12 PM
Anna
Anna - avatar
+ 2
You can combine multiple conditions with "and" and "or": if condition1 and condition2 or condition3: do_something()
6th Apr 2019, 6:21 PM
Anna
Anna - avatar
0
As we use if and just after this we use another if then they are nested but what if we want 2 if statement together and not nested then what we have to do?
6th Apr 2019, 6:16 PM
Aditya Verma
Aditya Verma - avatar