DAY 2 of PYTHON top 100 questions : from Basic to Advanced !!
Write a Python program to find the sum of all numbers between 1 and a given number:- n=int(input('Enter the number : ')) sum=0 for i in range(1,n+1): sum=sum+i print(sum) Output : Enter the number : 10 55 Here's a line-by-line explanation of ...
Apr 4, 20232 min read15

