in Python by
Q:
Define a function in Python

1 Answer

0 votes
by

A block of code that is executed when it is called is defined as a function. Keyword def is used to define a Python function.

Related questions

+1 vote
asked Feb 15, 2021 in Python by SakshiSharma
+1 vote
asked Oct 28, 2022 in Python by SakshiSharma
0 votes
asked Jun 28, 2020 in Python by Robindeniel
0 votes
asked May 23, 2020 in Python by sharadyadav1986
...