Is there anything else in "if" statement i need to know other than knowing that "if" nesting works only if outer "if" is true? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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")

19th Nov 2020, 2:45 AM
Amit Mondal
Amit Mondal - avatar
2 Answers
+ 7
Amit Mondal Ya, you need to know about indentation error https://www.sololearn.com/Discuss/2264044/?ref=app
19th Nov 2020, 3:34 AM
Simba
Simba - avatar
+ 1
Thank you
19th Nov 2020, 3:41 AM
Amit Mondal
Amit Mondal - avatar