--Originally published at Python & pugs
For the creationf/calling of a function, you need first to call it by writing “def” in the beginning of the sentence, and “:” at the end, like this:
def name():
Now you have to give the function a purpouse:
def name():
example (“Functions”)
print(example)
After all this, you need to close the sentence with the name of your function:
def name():
example (“Functions”)
print(example)
name()