Ad
  • Custom User Avatar

    And it didn't. It seems something implemented in 3.10 according to the other commentary. I used this in C# and Java, but didn't tried in Python just thinking it hadn't it.

  • Default User Avatar

    i liked this - this is how i done it. Although i think i may have been bias; been coding a few years in python and would not have consided looking into a switch function or similar. I've been brushing on C++ and CUDA over the past few weeks and made be try what i would consider doing in C++. Which also makes me wonder, how does this solution stack in terms of execution time and memory compared to others. Anyone done any profiling on it?

  • Default User Avatar

    it came with python 3.10

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution