← Back to Functions
Question 309
Greeting With A Parameter
Greeting With A Parameter
Complete greet(name: str) -> None so it prints the line Hello, <name>. with the name it was given in place of <name> and a full stop at the end. The driver reads one line and calls the function with it; do not change the driver. Input: one line, the name, no prompt. Output: the greeting line.
Expected Output:
Hello, Maya.= newline. The output ends with a newline — print one after the last line.
Hints2 available
Sign in to use hintsTopics:
Functions
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.