def greet():
print("Hello!")
def add(a, b):
return a + b
def area(radius, pi=3.14):
return pi * radius * radius
print(area(pi=3.1416, radius=5))
Functions help modularize tasks like:
Take quizzes related to this topic and see where you stand!
Start Quiz Now