DEV Community

Discussion on: Python Switches to Match-Case

Collapse
 
chorcon profile image
Chorcon

I don't think you're missing anything here, you're spot on. My guess is they changed from 'name' to 'dog_name' for clarity, then the author probably forgot to update it later in the code.

Collapse
 
vickilanger profile image
Vicki Langer

You are absolutely correct! I have since fixed the undefined variables.