+ 1

How to write multiple statements in IF statement?

30th Sep 2016, 7:04 AM
CharuDatta Kale
CharuDatta Kale - avatar
2 Answers
+ 2
I just wanted to know whether you are talking about multiple statements or multiple expression. If you want to write multiple expression then follow Mr. Ben Koch (the above answer) or else if you want to write multiple statement then just write one below the other like this if 1!=2: print('true') print('the given numbers are not equal ')
12th Jul 2017, 6:01 PM
Syed Abdul Hannan
Syed Abdul Hannan - avatar
+ 1
you can use 'and' or 'or' statements if (...) and/or (...) and/or (...) ...
3rd Oct 2016, 10:57 PM
Ben Koch
Ben Koch - avatar