Write a function greeting that consumes a string of length at least three and produces "Hello"
if the first three characters are "Hi!" and produces "Bye" otherwise.
def greeting(msg): if msg=="Hi!": print("Hello") else: print("Bye") greeting(input("Enter message: "))
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments