Very interesting solutions. I was in the direction of using dunder methods but could not figure out how. Haven't heard of the __class_getitem__
. The second solution is especially inspiring.
McCheng
joined 1 year ago
Gave some thoughts but couldn't find any. I need the solutions
But then you still need to use parentheses to decode it