Anu wishes to prepare a program to display the value of numbers from 1 to 25. The program that Anu prepared is given below. There are some errors in it. Can you edit the errors? s=0 for i in range(25): s=s+i print(s)
Answers
Answered by
0
Answer:
in range function it require 26 to increment till 25☺
Answered by
3
Answer:
s=0
for s in range (25):
s=s+1
print(s)
I hope this is the required answer...
( Please double check it using the python programming website. )
Similar questions
Social Sciences,
4 months ago
History,
4 months ago
Physics,
4 months ago
Physics,
1 year ago
Math,
1 year ago
Environmental Sciences,
1 year ago