Answers for "python for from 1 to n"

1

python for loop m to n

for i in range (m,n+1):
    s += i
    print(i)

print(s)
Posted by: Guest on May-09-2021
2

Range python iterate by 2

for i in range(0,10,2):
  print(i)
Posted by: Guest on May-20-2020

Python Answers by Framework

Browse Popular Code Answers by Language