DEV Community

Dr. Azad Rasul
Dr. Azad Rasul

Posted on

8- What are the functions in Python Programming?

8- Functions

Function is a block of code allowing us to use the same function whenever we call it.


def my_function():
    print("Hello from Python for researchers tutorial!")

# Hello from Python for researchers tutorial!
Enter fullscreen mode Exit fullscreen mode

A function with an argument:

def function1(fname):
    print(fname + " Azad Othman Rasul")

# Anas Azad Othman Rasul
# Aviar Azad Othman Rasul
# Muhammad Azad Othman Rasul
Enter fullscreen mode Exit fullscreen mode

If you like the content, please SUBSCRIBE to my channel for the future content.

To get full video tutorial and certificate, please, enroll in the course through this link:

Top comments (0)