Inside the code editor we've tried to write a function that takes a person's name as argument and prints a tailored welcome message for that person.
Then, we welcomed Andy and John by calling the function for each of them.
So when we ran the code, we expected it to print:
Welcome, Andy!
Welcome, John!
but it seems like we made some mistakes because when we run our code, it prints:
Welcome, Andy!
Welcome, Andy!
Assignment:
Your task is to fix our code such that no errors will be produced and it will print the desired output.
Free plan: 30 tutor messages. Premium is unlimited.