def greet(name="John"):
print("Hello, " + name)
greet("Alice")
greet()Hello, Alice
Hello, Johngreet()` that takes a single parameter `name`. If the caller passes a value for `name`, the function uses it to greet the user. If `name` is not provided, the function uses a default value of "John". greet()` twice. The first time, we pass the name "Alice" as a parameter, and the function greets Alice.