Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(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

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Application Development And Design

Authors: Michael V. Mannino

1st Edition

0072463678, 978-0072463675

More Books

Students also viewed these Databases questions