Tags | skill/problem_solving |
Hard Prerequisites | |
IMPORTANT: Please review these prerequisites, they include important information that will help you with this content. | |
|
This task is very similar to task 1.
Write a function that takes in a single optional parameter. It should work like this:
task2("Sally")
should print Hello Sally!
. Note that we are passing in a single stringtask2("Tshepo")
should print Hello Tshepo!
task2()
should print Hello Friend!
. Note that we are passing in no arguments here.else
part?"Hello Sally" == "Hello, Sally"
(try it yourself to see).