funcions in python 1

funcions in python

# functions in python look like this
def hello_world(): 
  print("Hello world")
  
hello_world()

Here is what the above code is Doing:
1. We define a function called hello_world.
2. We call the function hello_world.
3. The function prints “Hello world” to the console.

Similar Posts