Define and Call Functions — Python practice
Q1: Define and call a simple function
Define a function with def and call it to run its body.
Requirements
- Define a function called greet that prints "Hello from a function!"
- Call greet() to run it
Enable JavaScript to edit code, run the exercise, and review feedback. Your saved work loads in the existing practice workspace.