Question: Python question: i'm having trouble with this please help. 2 BaSe fOO ThE AttAcK Problem program.py output [] b 0 d 0 code-input(code: ) for

Python question: i'm having trouble with this please help.

Python question: i'm having trouble with this please help. 2 BaSe fOO

ThE AttAcK Problem program.py output [] b 0 d 0 code-input("code: ")

for word in code.split): In the war against Skynet, humans are trying

2 BaSe fOO ThE AttAcK Problem program.py output [] b 0 d 0 code-input("code: ") for word in code.split): In the war against Skynet, humans are trying to pass messages to each other without the computers realising what's happening. To do this, they are using a simple code: They read the words in reverse order They only pay attention to the words in the message that start with an uppercase letter if word [0].isupper () print (word) So, something like: BaSe fOO ThE AttAcK contains the message attack the base However, the computers have captured you and forced you to write a program so they can understand all the human messages (we won't go into what terrible tortures you've undergone). Your program must work as follows: DSubmissions Output code: BaSe f0oThE AttAcK BaSe ThE AttAcK code: soMe SuPPLies liKE Ice-CREAm aRe iMPORtant oNly t says: destroy their ice-cream supplies Notice that, as well as extracting the message, we make every word lowercase so it's easier to read

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 Databases Questions!