Question: IN PYTHON Write a program that, given a set of words in a list, calculate how many words begin with the letter you capture. Entry:

IN PYTHON

Write a program that, given a set of words in a list, calculate how many words begin with the letter you capture. Entry: 5 words and 1 letter Output: # of words that have the letter.

IMPORTANT NOTE: Your program should not include an input message: you are only going to capture the 5 words and finally the letter you want to find and as an output message you must indicate only the number of words that begin with the letter. IT DOESN'T MATTER IF THE LETTERS ARE GIVEN IN CAPITAL OR lower case.

EXAMPLE

Hola Mundo hermoso Estamos listos h

OUTPUT

2

example 2:

cosas cambios materia >unidades cursos C

OUTPUT

3

example 3:

cosas cambios materia unidades cursos O 

Output

0

Example 4:

Entrada Hola Mundo hermoso Estamos listos e 

OUTPUT

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!