Home My space log
Language EN (English)

Greet someone

Python Beginner robot ages 8-10

The problem

Write a function greet(name). It gives back the text Hello, then a space, then the name, then an exclamation mark. Example: greet("Sam") gives "Hello, Sam!".

You will practice: functions, return, joining text

Mode

Press Tab to indent. Press Esc and then Tab to move on to the next button.

Your code runs in your browser. We do not receive it or save it. Python is downloaded from cdn.jsdelivr.net the first time you run it (about 10 MB).

Test results

      What your code printed