LeetCode Python runtime version compatibility
LeetCode accepts solutions written in Python, but the platform does not disclose the exact interpreter version employed during judging. Community observations suggest the default may be Python 3.8, yet some submissions using features introduced in Python 3.10 (such as the match statement) have been reported as accepted, indicating a possible version upgrade