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-oneStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started