I am trying to make a program where it takes in user input and spits out the input without the letters. I'm really confused on why this isn't working.
numText = input("Give me a list of characters: ") # Gets user input of characters
numList = list(numText) # Turns ^ into list
for char in numList: # Every character in the list
if char.isalpha(): # Checks to see if the character is a letter
numList.remove(char) # Removes the letter from the list
print(numList) # Prints the new list without letters
input("") # Used so the program doesnt shut off
I know this is really dumb so im sorry for asking.