Hello everyone!
I am taking a python course at my college and I have recieved a question for my homework that I am having trouble with.
14) Write a program that finds the average of a series of numbers entered by the user. As in the previous problem, the program will first ask the user how many numbers there are. Note: the average should always be a float, even if the user inputs are all ints.
The trouble I am having is the user inputs. We have just learned about factorials and loops, so here is what my thought process is so far:
import math
def main():
print "This program will average a group of numbers together"
n = input("How many numbers will you be entering?: ")
for i in range(n):
From here, I do not know what to do. How can I make it so it stores the numbers the user puts in? I know I could add an input under the loop but I do not know how to store each input or add each input together.
Please do not finish the problem for me but rather just tell me how to add or store the inputs the user puts in. Thanks in advance!