I am trying to make an average calculator so that you can input as many numbers as you like and I am trying to turn an input into a list, how can I do this? Here is my code that I have so far.
numbers = []
divisor = 0
total = 0
adtonum = int(input("Enter numbers, seperated by commas (,): "))
numbers.append(adtonum)
for num in numbers:
divisor += 1
total = total + num
print(num)
print("Average: ")
print(total / divisor)