You've learned how to define a function and call it. Let's practice.
Write a simple function that prints a greeting, then call it more than once.
Your tasks
1. Define a function named greet that takes no parameters
2. Inside greet, print the text Hello!
3. Call greet() twice so the message prints two times
Expected output
Constraints
- Define the function with
def greet():
- The message must be printed from inside the function, not directly
- No external libraries