-1

I am using Python for my website testing using Selenium, I want to generate the report not able to identify the Python version which I am writing, I am beginner please help out.

Ratmir Asanov
  • 6,237
  • 5
  • 26
  • 40

1 Answers1

3

For identifying the Python version please write a following script into the Terminal:

$ python --version

If you want to check your Python version into your codebase please write the following script into your project:

import platform


print(platform.python_version())
Ratmir Asanov
  • 6,237
  • 5
  • 26
  • 40
sayhan
  • 1,168
  • 1
  • 16
  • 22