Question: 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

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!