3rd Jul 2024, 12:41 PM
Yazan Alhallack
Yazan Alhallack - avatar
2 Respostas
+ 4
It will output "Yes" because for a = 101, a is not < 100
3rd Jul 2024, 12:46 PM
Lisa
Lisa - avatar
+ 2
Yazan Alhallack , In your code you are using nested if and else statement...so you have to use 'elif' .... For that the syntax is, if(condition 1): Statement 1 elif(condition 2): Statement 2 else: Statement 3 Try like this, https://sololearn.com/compiler-playground/c4r0J8XC2DYw/?ref=app
4th Jul 2024, 7:57 AM
Riya
Riya - avatar