We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e122a2 commit 1ed71a1Copy full SHA for 1ed71a1
python-assignment-statements/interning.py
@@ -1,8 +1,8 @@
1
-import sys
+from platform import python_version
2
3
interning = [x for x, y in zip(range(-10, 500), range(-10, 500)) if x is y]
4
5
print(
6
- f"Interning interval for Python {sys.version[0:6]} is:"
+ f"Interning interval for Python {python_version()} is:"
7
f" ({interning[0]} to {interning[-1]})"
8
)
0 commit comments