Q:

What is a function in Python Programming?

0

What is a function in Python Programming?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer :

A function is a set of statements that take inputs, do some specific computation and produce output. function brings modularity to a program and a higher degree of code reusability. Python has given us many built-in functions such as print() and provides the ability to create user-defined functions.

Syntax of Function,

def function_name(parameters):
  """docstring"""
  statement(s)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now