May-01-2023, 09:06 PM
Quote:If this is a training course question, maybe you should just do what the question actually asks?You are assuming the instructions say delete the string values from the list. That is in the thread topic, but the OP says this:
Got a list: Char_List = ['Bla', 'Blu', 10, 20, 30, 40] Want to have this result: Num_List = [10, 20, 30, 40]One implies changing the list object, the other implies making a new list (otherwise why the new variable name?). Changing the existing list is a more interesting challenge.