Created
November 6, 2022 14:13
-
-
Save rvasilevsk/058f7975800801acf53f5ea761d4b8d2 to your computer and use it in GitHub Desktop.
[python check version] #python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if not sys.version_info.major == 3 and sys.version_info.minor >= 6: | |
print("Python 3.6 or higher is required.") | |
print("You are using Python {}.{}.".format(sys.version_info.major, sys.version_info.minor)) | |
sys.exit(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment