Question: ( 1 ) First, fix the indentation in the below code so that is runs properly. ( 2 ) What will be the output of

(1) First, fix the indentation in the below code so that is runs properly.
(2) What will be the output of the (fixed) code be when y =6?
y =6
if y >0:
if y >5:
print('higher')
if y <=5:
print('lower')

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!