You need to use raw_input instead of input
raw_input().split(",")
In Python 2, the input() function will try to eval whatever the user enters, the equivalent of eval(raw_input()). When you input a comma separated list of values, it is evaluated as a tuple. Your code then calls split on that tuple:
>>> input().split(',')
1,2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'tuple' object has no attribute 'split'
If you want to se that it's actually a tuple:
>>> v = input()
1,3,9
>>> v[0]
1
>>> v[1]
3
>>> v[2]
9
>>> v
(1, 3, 9)
Finally, rather than list and map you'd be better off with a list comprehension
L1 = [int(i) for i in raw_input().split(',')]
input()? it is reading it as a tuple, not a list.inputis a built-in.raw_inputinstead of input. Please break the problem down before posting. What is the smallest program you can write that still demonstrates your problem?