#try to avoid input function a = int(input("Enter any Number :")) b = 0 for i in range(1,a+1): b = b+i print("Sum of N Numbers is :",b,"Average of the N Numbers is :",(b/i))
Click the run button. Try to avoid input() function.