It’s better to teach incorrect python than to use a perfectly suitable aspect the language?
[enemy for enemy in enemies if enemy.type != "sand-yak"]
or
filter(lambda enemy: enemy.type != "sand-yak", enemies)
(although CoCo might fail on the second one)
I’ll try using this, if this doesn’t confuse me out first
Nope it doesn’t
oops
Turns out, all I had to do was remove the fancy shenanigans
(Happy Anniversary @Hydrobolic)
1 Like
Did I ever say it’s better? No I just said it didn’t hurt much using it here than other levels.
1 Like