Single Choice Not Set

QPython files are saved with the extension as ...?

ID: #3387 Python Basic MCQ 447 views
Question Info
#3387Q ID
Not SetDifficulty
Python Basic MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A .python
  • B .pe
  • C .py
  • D .pi
Correct Answer

Explanation

Explanation:

Python source code files are saved with the .py file extension. This extension tells the operating system and Python interpreter that the file contains Python program code.

For example, a Python program can be saved as:

hello.py
calculator.py
student_management.py

These files can be executed using the Python interpreter, for example:

python hello.py

The other options are incorrect because .python, .pe, and .pi are not valid file extensions for Python source code.

Therefore, the correct answer is Option C) .py.

Share This Question

Challenge a friend or share with your study group.