What is returned from the following user-defined function if you pass it the argument “John”?

Automate Cybersecurity Tasks with Python | Weekly challenge 2 Quiz | 

What is returned from the following user-defined function if you pass it the argument “John”?

def greet(name):
greeting = "Hello"
return name
greet("John")
  • “John”
  • name
  • “Hello, John”
  • “Hello John”

 

Leave a Comment