#program to demonstrate subroutine calling def getresponse(): response =input("Do you like chocolate? ") while response!="y" and response!="n": print("Please answer y or n...") response =input("Do you like chocolate? ") if response =="y": print("Me too!") else : print("You're kidding!") #main program getresponse()