Implement the following: 1) Request a user input for the variable, direction. 2) Write an if-elif-else statement to do the following: a) if the direction is 'N', print a message, North Zone. b) if the direction is 'S', print a message, South Zone. c) if the direction is 'E', print a message, East Zone. d) if the direction is 'W', print a message, West Zone. e) if the direction is none of the above, print a message, Invalid Input. f) uppercase and lowercase should be all acceptable. Example Output 1 Enter your direction(N/S/E/W): uptown Invalid Input. Example Output 2 Enter your direction(N/S/E/W): e East Zone.
Implement the following: 1) Request a user input for the variable, direction. 2) Write an if-elif-else statement to do the following: a) if the direction is 'N', print a message, North Zone. b) if the direction is 'S', print a message, South Zone. c) if the direction is 'E', print a message, East Zone. d) if the direction is 'W', print a message, West Zone. e) if the direction is none of the above, print a message, Invalid Input. f) uppercase and lowercase should be all acceptable. Example Output 1 Enter your direction(N/S/E/W): uptown Invalid Input. Example Output 2 Enter your direction(N/S/E/W): e East Zone.
Chapter4: Making Decisions
Section: Chapter Questions
Problem 5E: a. Write a program named CheckMonth that prompts a user to enter a birth month. If the value entered...
Related questions
Question
Implement the following:
1) Request a user input for the variable, direction.
2) Write an if-elif-else statement to do the following:
a) if the direction is 'N', print a message, North Zone.
b) if the direction is 'S', print a message, South Zone.
c) if the direction is 'E', print a message, East Zone.
d) if the direction is 'W', print a message, West Zone.
e) if the direction is none of the above, print a message, Invalid Input.
f) uppercase and lowercase should be all acceptable.
Example Output 1
Enter your direction(N/S/E/W): uptown
Invalid Input.
Example Output 2
Enter your direction(N/S/E/W): e
East Zone.
NEED HELP WITH PYTHON CODE
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 3 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning