The input is something like: "W,79,V,84,U,63,Y,54,X,91"
Output should be: [‘W’, ‘79’, ‘V’, ‘84’ , ‘U’, ‘63’, ‘Y’, ‘54’, ‘X’, ‘91’]
but my code is filled with comma.
a1 = list(input())
print(a1)
my output is ['W', ',', '7', '9', ',', 'V', ',', '8', '4', ',', 'U', ',', '6', '3', ',', 'Y', ',', '5', '4', ',', 'X', ',', '9', '1']
How do I remove the commas?
Note :cant use build in functions except input()
, split()
, list.append()
, len(list)
, range()
, print()