# give a name of function after def
1.def sayhi():
#put the statement in the function
2.print(“hello world”)
#call function by name:
3.sayhi()
Output:
Hello world
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter