D=int(input().split(","))
print(D)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'
D=int(input().split(","))
print(D)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'list'
Check if it is use-full to use
>>> x=input('Enter multiple inputs')
Enter multiple inputs 8,9,'ll',5
>>> x
"8,9,'ll',5"
x.split(',')
['8', '9', "'ll'", '5']
You are trying to convert a list to int.
string.split() returns a list.
user_input = input('Enter Comma Seperated Digits:' ).split(',')
#Enter Comma Seperated Digits: 1,2,3
D = [int(x) for x in user_input]
# This will return a LIST of integers.
D= [1,2,3] #
print type(D[0])
# <class 'int'>