What extension must you add to the end of a Python source code file when saving?.xlsx.pptx.docx.py
Question
What extension must you add to the end of a Python source code file when saving?
Options:
- .xlsx
- .pptx
- .docx
- .py
Solution
The correct extension to add to the end of a Python source code file when saving is .py
. This extension indicates that the file contains Python code, allowing the Python interpreter to recognize and execute the script properly. When you save a file with the .py
extension, it is standard practice within the programming community, making it easier for others (and yourself) to identify the file's purpose. Other extensions you mentioned (.xlsx
, .pptx
, .docx
) are used for Excel spreadsheets, PowerPoint presentations, and Word documents respectively, and are not applicable to Python scripts.
Similar Questions
Which is not a Microsoft Office extension?Group of answer choices.xlsx.txt.pptx.docx
Identify the Correct extension that should be used when saving a Python program as a file..exe extension.pyt extension.py extension.txt extension
A file with a .ppt or .pptx extension was created in Microsoft Office ________.
Which of the following file extensions is applied to a PowerPoint 365 presentation by default when you save it? 1. .pptx 2. .pdf 3. .potx 4. .ppt
Which of the following file extensions is applied to a PowerPoint 365 presentation by default when you save it? 1. .pdf 2. .pptx 3. .potx 4. .ppt
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.