0 votes
in Python by
What are functions?

1 Answer

0 votes
by

Functions are a set of code used when we want to run the same method for more than 1 time.It reduces the length of program.Functions are defined into 2 categories –

1)function defination

2)function calling

Example

def dog():

print(“my name is tommy”)

dog();

Related questions

0 votes
asked Jan 11, 2021 in Python by SakshiSharma
0 votes
asked Dec 14, 2019 in Python by sheetalkhandelwal
...