Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Python, Write a program that reads a single word and does the following: 1) Print the word as it was typed. 2) Print each

In Python, Write a program that reads a single word and does the following:

1) Print the word as it was typed.

2) Print each letter in the word on a separate line (in order).

3) Print each letter in the word on a separate line (reversed).

4) Print the number of different letters in the word.

5) Print the number of vowels (a, e, i, o, u) in the word.

6) Print each letter in alphabetical order and the number of times it occurs in the word.

Here is a sample run:

Type a word:america

america

a

m

e

r

i

c

a

a

c

i

r

e

m

a

The word has 6 different letters

Vowels occur 4 times

a:2

c:1

e:1

i:1

m:1

r:1

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 Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions