Computer Science
A function in Python begins with which keyword?
- void
- return
- int
- def
Python Functions
4 Likes
Answer
def
Reason — Functions in Python are defined as per the following format :
def function_name(parameters):
statements
According to this format, function definition begins with keyword def.
Answered By
3 Likes
Related Questions
Recursion is defined as defining anything in terms of itself.
Function can alter only mutable data types.
Name the statement that sends back a value from a function.
- input
- return
- None
Functions that do not return any value are known as:
- fruitful functions
- void functions
- library functions
- user-defined functions