Question: 13. Write the output of the following code for i in range(0,5): if i%2=0: for j in range(0,5): if j%2=0: print(1,end='') elif j%2!=0: print(0,end='')

13. Write the output of the following code for i in range(0,5): if i%2=0: for j in range(0,5): if j%2=0:

13. Write the output of the following code for i in range(0,5): if i%2=0: for j in range(0,5): if j%2=0: print(1,end='') elif j%2!=0: print(0,end='') print(") elif i%2!=0: for j in range(0,5): if j%2=0: print(0,end='') elif j%2!=0: print(1,end='') print(") 13. Write the output of the following code for i in range(0,5): if i%2=0: for j in range(0,5): if j%2=0: print(1,end='') elif j%2!=0: print(0,end='') print(") elif i%2!=0: for j in range(0,5): if j%2=0: print(0,end='') elif j%2!=0: print(1,end='') print(")

Step by Step Solution

3.41 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The equality check should use instead of Heres the corrected version ... View full answer

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!