Hi this is the code I'm working on, but every time I run it, every character inputted is printed, so hello becomes 'h','e','l','l','o', even numbers! I can't seem to fix it so that it can be added to the list and printed normally, thanks!
#Printing the original list (This was given)
a = ['spam','eggs',100,1234]
a[0:2] = [1,12]
print("This is the original list:", a)
#Prompting user to input data
b = input('Please add your first item to the list: ')
c = input('Please add your second item: ')
a[4:4] = b
a[5:5] = c
#Printing new list
print(a)
1 answer
---- This is fixed now thanks ----