?
Which of the following is the correct extension of the Python file?
Answer & Solution
Correct Answer:
Option
C
The correct extension of a Python file is .py.
Python files typically have the extension ".py", which indicates that they contain Python code. When you save a Python script, you should use the ".py" extension at the end of the file name to ensure that it's recognized as a Python file by the interpreter and text editors. Using the correct file extension also helps maintain organization and clarity in your project directory.
Python files typically have the extension ".py", which indicates that they contain Python code. When you save a Python script, you should use the ".py" extension at the end of the file name to ensure that it's recognized as a Python file by the interpreter and text editors. Using the correct file extension also helps maintain organization and clarity in your project directory.
Join the Discussion
Login to post a comment or share your explanation.
Login