- 1
Write a program that calculates the average n numbers. The program will have n+1 inputs.
I got an error when I wrote >>>n= "24">>>n=n+1
3 Answers
+ 3
This looks like a homework.
Show us yout attempt and maybe we can help you.
https://www.sololearn.com/discuss/1316935/?ref=app
+ 2
One problem may be the type of the variable.
If you want a number then n has to be type int.
But if you write n = "7", that is a type string.
0
>>>n="7"
>>>n+1