dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: Intermediate
Mar 20, 2020

How to Detect the Python Version at Runtime

At times, we want to run our code only if the version of the Python engine is above a certain version. See below for sample code:

Import sys
version = sys.version
Srinath M S
 
Thanks for your registration, follow us on our social networks to keep up-to-date