"toNumbers(strList) is a list of things,each of which represents a number.Modifies each entry in the list by converting it to a number."
Here is my code and it won't work,please help,thank you!
import string
def toNumbers(strList):
nums = []
for i in strList:
nums = nums.append(int(i))
return nums
def main():
m = ["1","2"]
print toNumbers(m)
main()