how to wirte a function in python

Solutions on MaxInterview for how to wirte a function in python by the best coders in the world

showing results for - "how to wirte a function in python"
Juan
31 Apr 2017
1# We use the def keyword to write a function in python
2# Format: def function_name():
3# For example:
4def Bark():
5  print("Bark! Bark!")
6
7# If we want to run the function
8Bark()