Which of the following is the correct extension of the Python file?
A. .python
B. .pl
C. .py
D. .p
Answer: Option C
Solution (By Examveda Team)
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.

Join The Discussion