0
Is there anything else in "if" statement i need to know other than knowing that "if" nesting works only if outer "if" is true?
# if statement inside another if statement(if nesting) num = int(input("Number: ")) if num<100: print("Number is less than 100") if num<=47: print("Number is less than or equal to 47") else: print("Number greater than 47")
2 Respuestas
+ 7
Amit Mondal Ya, you need to know about indentation error
https://www.sololearn.com/Discuss/2264044/?ref=app
+ 1
Thank you