How to create function? With example?
1- def my_function(): #def define an new function called my_function.. and the ":" is needed 2- print("hello world") #this part can be any function, operations ,variable, out etc. and which is only applicable when the function is called... # while running . my_function () #output is hello world :) hope you understood
def howToCreateFunction: print("With example?") howToCreateFunction() #result: With example?