What is the output of the below code snippet?
x=0
for y in range(21):
x+=y
print x
Answers
Answered by
5
Answer:
There is syntax error in print line. It should be print(x)
Output
0
1
3
6
10
15
21
28
38
45
55
66
78
91
105
120
136
153
171
190
210
Answered by
2
Answer:
sum of numbers up to 20(including)
Similar questions