subject

Write a program whose input is a string which contains a character and a phrase, and whose output indicates the number of times the character appears in the phrase. Ex: If the input is:
n Monday

the output is:
1

Ex: If the input is:
z Today is Monday

the output is:
0

Ex: If the input is:
n It's a sunny day

the output is:
2

Case matters.

Ex: If the input is:
n Nobody

the output is:
0

n is different than N.

Learning Python

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
What role do chromosomes play in inheritance?
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
The average cost of one year at a private college in 2012-2013 is $43,289. the average grant aid received by a student at a private college in 2012-2013 is $15,680.   what is the average student contribution for one year at a private college in 2012-2013?
Answers: 3
question
Computers and Technology, 23.06.2019 11:00
What are the possible consequences of computer hacking? what is computer piracy? describe some examples. what are the effects of computer piracy? what are the possible consequences of computer piracy? what is intentional virus setting? describe some examples. what are the effects of intentional virus setting? what are the possible consequences of intentional virus setting? what is invasion of privacy? describe some examples. what are the effects of invasion of privacy? what are the possible consequences of invasion of privacy? what is an acceptable use policy and what is the purpose of the acceptable use policy what is intellectual property and how can you use it?
Answers: 1
question
Computers and Technology, 24.06.2019 00:40
To maintain clarity and focus lighting might be needed
Answers: 2
You know the right answer?
Write a program whose input is a string which contains a character and a phrase, and whose output in...
Questions
question
Mathematics, 19.04.2020 08:36
question
English, 19.04.2020 08:36
question
Mathematics, 19.04.2020 08:51
question
English, 19.04.2020 08:51
question
English, 19.04.2020 08:51
Questions on the website: 13722363