It’s always nice when someone asks you how you are doing, so why not create a program using Python that will do that for us. And, because we program it exactly how we want to, we will let our program keep asking us how we are until we answer with “Well!”.
Write a program called `howareu.py` that uses a `while` loop to repeatedly ask the user “How are you?” until the user replies with exactly the answer “Well!”. Finish by printing “Great!”.
-!- CODE language-text -!-How are you? Good!
How are you? Not great...
How are you? Well!
Great!
CodeGrade is your virtual teaching assistant in your Python classroom. You teach, CodeGrade takes care of the rest.
Our 35 built-in fully automatically graded Introduction to Programming assignments are designed especially for middle school and high school coding education, in close collaboration with Harvard-Westlake School (Los Angeles, CA). You can start teaching Python at your school with confidence now. Or, easily scale your classroom with CodeGrade's tools.
Book a personal 30-minute demo now and we'll show you how to get started with CodeGrade in less than 1 hour!