01 | First Function Demo
What it is is:
function_demo.py
# This program demonstrates a function.
# First, we define a function named message.
def message():
print('I am Arthur,')
print('King of the Britons.')
# Call the message function.
message()
Output:
I am Arthur,
King of the Britons.