use {} for functions in python code example
Example 1: how to use def in python
def functionName(variable):
//function content
Example 2: python functions
#Functions
def string():
print('This is a function')
print(string())
def functionName(variable):
//function content
#Functions
def string():
print('This is a function')
print(string())