Give the output of the following python statements. y=5 for i in range(1,3): for j in range(0,i): z=i+j-1 if(z%2)==0: y=y+z elif(z%3)==0: y=y+z-2 print("y=",y)
Share
Give the output of the following python statements. y=5 for i in range(1,3): for j in range(0,i): z=i+j-1 if(z%2)==0: y=y+z elif(z%3)==0: y=y+z-2 print("y=",y)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
0 Replies