kode2go / python

Lessons on learning python programming.
0 stars 0 forks source link

Python Exercises: Q2 #2

Open kode2go opened 3 years ago

kode2go commented 3 years ago
  1. Write a Python program to get the Python version you are using.
kode2go commented 3 years ago
import sys
import platform
print(list(sys.version_info))
s = list(sys.version_info)
print("python version",s[0],s[1],s[2])

print(platform.python_version())