Question: Write a program that greets the user with How are you? If the response is OK (Upper or lower case), then display Good to hear!
Write a program that greets the user with "How are you?" If the response is "OK" (Upper or lower case), then display "Good to hear!" Handle (ignore) leading and trailing spaces. Useful string methods are lower 0 or upper 0 and strip0. Example run: How are you? OK Output: Good to hear
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
