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: 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
The equality check should use instead of Heres the corrected version ... View full answer
Get step-by-step solutions from verified subject matter experts
