1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
valentina_108 [34]
3 years ago
15

The four compass points can be abbreviated by single-letter strings as "N", "E", "S", and "W". Write a function turn_clockwise t

hat takes one of these four compass points as its parameter, and returns the next compass point in the clockwise direction. Here are some tests that should pass:
test(turn_clockwise("N") == "E")
test(turn_clockwise("W") == "N")
You might ask "What if the argument to the function is some other value?" For all other
cases, the function should return the value None:
test(turn_clockwise(42) == None)
test(turn_clockwise("rubbish") == None)

Computers and Technology
1 answer:
Naddik [55]3 years ago
6 0

Answer:

The program code is written in the explanation.

Explanation:

def turn_clockwise(d):

if d=="N":

return "E"

elif d=="E":

return "S"

elif d=="S":

return "W"

elif d=="W":

return "N"

else:

return "None"

Output:

You might be interested in
Write an If...Then statement that assigns 0 to intX when intY is equal to 20
BigorU [14]

Answer:

wh,,what?

Explanation:

3 0
3 years ago
Read 2 more answers
WHO WANTS TO PLAY AMONG US
Elza [17]

Answer:

Explanation:

ME

8 0
3 years ago
Read 2 more answers
Help me plase will give brainliest
egoroff_w [7]

Export the data into a spreadsheet

5 0
3 years ago
Read 2 more answers
Provide an example by creating a short story or explanation of an instance where availability would be broken.
ryzh [129]

Incomplete/Incorrect question:

Provide an example by creating a short story or explanation of an instance where confidentiality would be broken.​

<u>Explanation:</u>

Note, the term confidentiality refers to a state or relationship between two parties in which private information is kept secret and not disclosed by those who are part of that relationship. Confidentiality is broken when this restricted information is disclosed to others without the consent of others.

For instance, a Doctor begins to share the health information of a patient (eg a popular celebrity, etc) with others such as his family members and friend

s without the consent of the celebrity.

6 0
3 years ago
Write an if/else statement that compares the variable age with 65, adds 1 to the variable seniorCitizens if age is greater than
Oduvanchick [21]

if age >= 65:

seniorCitizens = seniorCitizens + 1

else:

nonSeniors = nonSeniors + 1

6 0
3 years ago
Other questions:
  • Type of malware that is spread when you distribute
    12·1 answer
  • In Windows 2000 and later, the ____ command shows you the file owner if you have multiple users on the system or network.
    15·1 answer
  • Chris wants to guarantee that the instructions within the loop are executed one time regardless of thestatus of a condition. Whi
    9·1 answer
  • A store that has both an e-commerce site as well as a physical store (building) is known as:
    8·1 answer
  • Firewall ____ indicate whether a large number of echo messages are being received.
    9·1 answer
  • What are some things you can do to clean up your digital footprint.
    9·1 answer
  • How many strings with five or more characters can be formed from the letters in seeress?
    15·1 answer
  • Point out the wrong statement:
    7·1 answer
  • Trish has bought a new computer that she plans to start on after a week
    5·1 answer
  • Choose the missing words in the code below.
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!