What is the output of the following statement with reason? (2)
for i in range(1,11):
if i%3 == 0:
break
else:
print(i)
Answers
Answered by
10
Answer:
Answer: error
Explanation: SyntaxError, there shouldn’t be a space between + and = in +=.
Similar questions