It's Dangerous to Go Alone! Take This



why can't i write this code like this:



because the .remove() function removes the matching value, not based on index. You can remove based on index, but then you need del:


not sure if the exercise will like that, but the output should be good


A post was split to a new topic: It is dangerous to go alone! take this