Computer Science, asked by abdullah123khawaja, 8 months ago

What is the correct file extension for Python files?
1 point
a).pt
b).pyt
c).pyth
d).py

Answers

Answered by ravisimsim
20

Explanation:

PYTHON IS A HIGH LEVEL LANGUAGE.

THE CORRECT FILE EXTENSION FOR PYTHON FILE IS.PY

YOUR ANSWER IS OPTION D.

PLZ MARK AS BRAINLIEST

Answered by BrainlyYoda
3

The correct file extension for Python files is .py

d) .py

Extra Information

Python is created by Guido van Rossum and came into existence in 1991. It is a high-level and general programming language. It is a very lucid programming language as it has a good language construct and object-oriented approach. It is dynamically typed and garbage-collected.

The format of writing a function in Python is as follows :-

def the_function_name():

  what_the_function_does  

Proper indentation is necessary.

We start function block with keyword 'def' and give a function name and then we type arguments that get executed when the function is called.

return keyword is also used in function so, as to return the value of some variable to the main function if used.

Similar questions