Skip to main content
1 of 2
SylvainD
  • 29.8k
  • 1
  • 49
  • 93

Writing classes is not an aim in itself, it is just a tool. Sometimes it's useful, sometimes it's not. I recommand the talk stop writing classes.

(Also, your code looks ok as it is even if a few things can be improved. For instance, I'm not sure you use the value i so you probably don't need enumerate.)

SylvainD
  • 29.8k
  • 1
  • 49
  • 93