@function function python code example
Example 1: python function
def name():#name of the def(function);
print("Hallo, World!")#Output is Hallo, World!;
name()#Name of the def, the programm will jump to the def;
#output:
#Hallo, World!
Example 2: functions in python
#Functions
#Functions are followed by the 'def' keyword
#Name your function
def myfunc():
a = 'This is a func'
#Calling the function
myfunc()
print(myfunc())