I am trying to print a certain output if the user's input (greet
) begins with a certain word "hello" else if the input begins with h using the if
statement.
I have tried:
if greet == "hello":
print("wrong")
elif greet == "h_" #(but not hello)
print(" okay")
else:
print("good")