Computer Science, asked by nithya1307, 4 months ago

What will be the output of the following Python code

for a in range(-1,7,4):

for b in range(2):

print(a,b)​

Answers

Answered by Mobashir885
2

Answer:

Programming MCQ - Conditionals And Loops

13. What will be the output of given Python code?

n=7

c=0

while(n):

if(n>5):

c=c+n-1

n=n-1

else:

break

print(n)

print(c)

A. 2

B. 6 5 2

C. 3

D. 5 2

View Answer

Ans : A

Explanation: 2 will be the output of given Python code.

Similar questions