Machine-translated by Google. Questions are authored in English.
Top

Discussion

What is the extension of a Python source code file ?

  • A..pt
  • B..py
  • C..pyt
  • D..pn

Answer: B

Correct answer: .py

.py marks a Python source file. When it is run, Python compiles it to bytecode and may cache that alongside as a .pyc file to save recompiling next time.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.