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
In Python 3.x, use this.
a = [int(x) for x in input().split()]
>>> a = [int(x) for x in input().split()] 3 4 5 >>> a [3, 4, 5] >>>