Finding sum of numbers

 sum = 0

for i in range(1,51):
    sumsum+i
print("Sum =",sum)


Sum = 1275

Comments

Popular posts from this blog

4 Stage Timer With DS3231RTC Module.

Interfacing KY038 sound sensor with Raspberry pi Pico

Interfacing MQ2 Gas & Smoke Sensor With Raspberry Pi Pico