(Dec-19-2020, 04:55 PM)GJG Wrote: So basically there's no point for it..?yes
nr = 9 numbers = [0,5,6,7,6,9,9,1,9] for x in numbers[:]: if x != nr: numbers.remove(x) print(numbers)
Output:[9, 9, 9]
by the way - you can try it yourself. don't hesitate to experiment and play with the code.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs