← Back to the lesson: Functions
Function with Parameter
The exercise
Create a function 'greet' that takes a name and prints:
"Hello, [name]!"
Then call: greet("World")
Expected output: Hello, World!
Starter code
# Define greet function / Определите функцию greet
# Call greet("World") / Вызовите greet("World")
Write the code in the browser and run it — no installation needed.