Question: A junior Python programmer wants to have a user input a location and then have the location print on the screen. In addition, the developer
A junior Python programmer wants to have a user input a location and then have the location print on the screen. In addition, the developer wants to tell the user to enter North, South, East, or West for a location and have the user try again if a proper location is not entered or print the location if the location is North, South, East, or West. Using drag and drop, drag over the lines of code necessary to accomplish this. Location should be the first variable declared. Not every line of code will be used. oooo print(response) a Line 1 while response not in location: v Mtn response = input("Enter North, South, West, v or East for a location.")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
