def toNumbers(strList):
for char in strList:
return strList[0:len(char)]
def main():
sttr = ['120','125']
print(toNumbers(sttr))
main()
The output is:
I want the output to read:
120 125 <-- without the brackets and quotes
I'm supposed to take a list of numbers (as strings) and simply return the same
numbers (not as strings)