I tried to use raw_input() to get a list of numbers, however with the code
raw_input()
numbers = raw_input() print len(numbers)
the input
you can pass a string representation of the list to json:
import json str_list = raw_input("Enter in a list: ") my_list = json.loads(str_list)
user enters in the list as you would in python: [2, 34, 5.6, 90]
[2, 34, 5.6, 90]