Question: (MUST BE IN PYTHON 2.7) Here is a quote from 1984 by George Orwell: It was a bright cold day in April and the clocks
(MUST BE IN PYTHON 2.7)
Here is a quote from 1984 by George Orwell:
"It was a bright cold day in April and the clocks were striking thirteen."
Assign the quote to a variable.
Use a loop to count the number of spaces (' ') in the quote
If there are n spaces, how many words are there?
Using a loop, print all the letters in the string, one-by-one.
I
t
w
a
s
a
Use another loop to print out the string like this:
I t
w a s
a
b r i g h t
Use another loop to print out the string like this:
I t w a s a b r i g h t c o l d d a y i n A p r i l a n d t h e c l o c k s w e r e s t r i k i n g t h i r t e e n


Homework 11 Here is a quote from 1984 by George Orwell: "It was a bright cold day in April and the clocks were striking thirteen." Assign the quote to a variable. Use a loop to count the number of spaces in the quote f there are n spaces, how many words are there? Using a loop, print all the letters in the string, one-by-one
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
