I am trying to make a simple calculator that calculates basic statistic functions. I am almost done but I cannot figure out how to make a user input a list of numerical values. This is where I am currently at:
#inputList code?
inputList = []
numbers = input('Input your numbers: ').split(',')
for entry in numbers:
inputList.append(entry)
This gives me the error: TypeError: can't convert type 'str' to numerator/denominator Here is a link to all the code: http://pastebin.com/B7u5a6LA
inputList = input(...).split(','), the code you have provided works fine for me. Please provide a minimal example that actually recreates the issue.returnstatements. Unlike some languages, Python doesn't automatically return the result of the last line executed in a function.