Skip to content

Instantly share code, notes, and snippets.

@ratchetwrench
Last active March 27, 2020 17:00
Show Gist options
  • Save ratchetwrench/e8cab9ff506053fc9035f00d9359a24d to your computer and use it in GitHub Desktop.
Save ratchetwrench/e8cab9ff506053fc9035f00d9359a24d to your computer and use it in GitHub Desktop.
Know Which Version of Python You're Using
# To find out exactly which Python version you're using, you can use the --version flag
python --version
# Python 3 is usually available under the name python3
# python3 --version
# You can also figure out the version with the runtime configuration
# import sys
# print(sys.version_info)
# print(sys.version)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment