
Comptia Security+.
In season 7, episode 24 of Seinfeld, Kramer visits a bank that promises to give $100 to anyone who isn’t greeted with a “hello.” Kramer is instead greeted with a “hey,” which he insists isn’t a “hello,” and so he asks for $100. The bank’s manager proposes a compromise: “You got a greeting that starts with an ‘h,’ how does $20 sound?” Kramer accepts.
Instructions
#Prompt user for a Greeting. Convert it to lowercase & Strip any leading spaces
greeting = input("Greeting: ").lower().lstrip() #Assign the input to a variable "greeting"
if greeting[0:5] == "hello": #Check if greeting is "hello"
print("$0")
elif greeting[0] == "h": #If not then check if first letter is h"
print("$20")
else:
print("$100") #Otherwise default to Else Statement"