Computer Science, asked by nani83334, 11 months ago

Complete the script by filling in the missing parts. The function receives a name, then returns a greeting based on whether or not that name is "Taylor".

def greeting(name):
if ___ == "Taylor":
return "Welcome back Taylor!"
___:
return "Hello there, " + name

print(greeting("Taylor"))
print(greeting("John"))

Answers

Answered by stp2965
12

Answer:

1. name

2.else

This is you words that should be placed in the blank spaces.

Thanks❤️

Answered by vijayasjadhav07
2

Answer:

def greeting(name):

 if name == "Taylor":

   return "Welcome back Taylor!"

 else:

   return "Hello there, " + name

print(greeting("Taylor"))

print(greeting("John"))

Explanation:

Check the condition with name parameter and else condition

Similar questions