Ask Question
4 November, 01:21

A python programmer is writing a function definition. What syntax should be used?

+5
Answers (1)
  1. 4 November, 04:32
    0
    Syntax of function in the Python Programming Language.

    def function_name ():

    '''body of the function or code'''

    #calling of the function

    function_name ()

    Note: In Python Programming Language, Indentation is sensitive if you not focus on the indentation then, you program occurs an indentation error.

    Explanation:

    In Python Programming language, we can use the "def" keyword to define a function then we write the name of the function and then use parentheses for the argument list. "#" is used for the single-line comment and " ''' ''' " is used for the multiple line comment.

    A function is the part or module of the program which provides users the feature of reusability of that code anywhere only by calling them.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “A python programmer is writing a function definition. What syntax should be used? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers