Q. What is the output of def greet(name=’Guest’): return ‘Hello ‘ + name print(greet())?

A
Hello
B
Hello Guest
C
Hello name
D
Error
Solution:

The default parameter ‘Guest’ is used, returning ‘Hello Guest’.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!