Which of the following is the correct extension of a Python file?

Options

  • A. .pt
  • B. .py
  • C. .python
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

B. .py

Detailed Explanation

Python source code files generally use the .py extension.