compass_helper.py 2 Conditionals (elif and else) 3 Instruction Practice: Nested Conditionals 4 Compass Helper 11 11 11 6. 7 #### 8 rising 9 direction = input ("Is the sun to your a) left or b) righ 10...

What's wrong with my code?compass_helper.py<br>2 Conditionals (elif and else)<br>3 Instruction Practice: Nested Conditionals<br>4 Compass Helper<br>11 11 11<br>6.<br>7 ####<br>8 rising<br>9 direction = input (
RUN YOUR CODE <-- #="" 30="" #--=""> TURN-IN YOUR CODE <-- #="" 31="" 78601="" 2222n="" 33="" "/="">
Extracted text: compass_helper.py 2 Conditionals (elif and else) 3 Instruction Practice: Nested Conditionals 4 Compass Helper 11 11 11 6. 7 #### 8 rising 9 direction = input ("Is the sun to your a) left or b) righ 10 INPUT input ("Is the sun a) rising or b) setting? Ente #### %3D 11 12 #### RESPONSE #### --- 13 14 # Print the right response depending on the combination 15 # of the two variables 16 17 if rising == "a": 18 if direction == "a": print ("You are facing South.") 19 20 else: 21 print ("You are facing North.") 22 else: 23 24 25 else: if direction == "a": print ("You are facing North.") print ("You are facing South.") 28 # --> RUN YOUR CODE <-- #="" 30="" #--=""> TURN-IN YOUR CODE <-- #="" 31="" 78601="" 2222n="">

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here