Question: Step 1 : Execute the following statement ( copy and paste into the WingIDE Python Shell ) then press enter. textStr = ' ' '

Step 1:
Execute the following statement (copy and paste into the WingIDE Python Shell) then press enter.
textStr =''' Between ten and eleven oclock that morning two messengers were sent in
a taxicab from the East River National Bank, at Broadway and Third
street, to draw $25,000 in currency from the Produce Exchange National
Bank, at Broadway and Beaver street, in the downtown financial district,
and bring it uptown. This transfer of money had been made several times
a week for so long a period without danger or loss that the messengers
were unarmed. One of them, Wilbur F. Smith, was an old man who had been
in the service of the bank thirty-five years, and the other was a mere
boy, named Wardle, seventeen years old. The taxicab man, an Italian
named Geno Montani, seemed almost a trusted employee, too, for he
operated two cabs from a stand near the bank, and was frequently called
upon for such trips.'''
Step 2:
Using the Python shell within WingIDE determine the following characteristics that are associated with variable textStr:
1) What is the type of the variable/object is textStr?
2) What is the length of the textStr?
3) Create a list of wordsFound in textStr. (hint: use the method .split())
4) Sort the wordsFound list.
5) How many individual words (i.e., strings) were created?
6) How many words in the wordsFound list are in Title case? (hint: use the method .istitle())

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!