0
Please help solve this. Complete this function to either return "hello, (name)!" Or "Hello there!"
def say_hello (""): print "hello";
2 Answers
0
answer below with a couple example calls.
def say_hello(defaultname="there"):
print("Hello " + defaultname + "!")
inputname=input()
say_hello()
say_hello(inputname)
- 1
def sayHello(*a):
if a:
print("Hello " + a[0])
else:
print("Hello There!")
sayHello("Justin")
sayHello()