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 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.") ye} print("Try again.) location = ["North", "South", "West", "East" a Line 4 Line 5 Line 6

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!