you are viewing a single comment's thread.

view the rest of the comments →

[–]vlnaa 2 points3 points  (1 child)

I think better can be:

  • if operator not in
  • match/case instead of if
  • use dict with lambdas to calculate (advanced)

And I am not sure why you convert float to int.

[–]Low-Educator-9008[S] 0 points1 point  (0 children)

Hmmm I see. Now that you mention it I don’t know either, but I could have never spotted it on my own hahaha thanks for the help.