Functions in Python


Learn how to define and call functions, which are reusable blocks of code designed to perform a specific task.

Source Code

def greet(name):
    return f"Hello, {name}!"
print(greet("Alice"))
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments