1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
ycow [4]
4 years ago
6

Count characters 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
Computers and Technology
1 answer:
Shalnov [3]4 years ago
7 0

Answer:

str1=str(input("Enter a character and phrase "))

count= 0

for i in range(0,len(str1)):

if str1[0]==str1[i]:

count+=1

count1=count-1

print(str1[0] + ' appears ' + 'this many times in ' + str1[1:] + ' is : ' + str(count1) )

You might be interested in
A)​What would be the state of the following list after each of the first four passes in a Bubble sort, sorting into ascending se
nata0808 [166]

Answer:

Three passes will be required

MARK ME AS BRAINLEST

8 0
2 years ago
Using a Mouse
MariettaO [177]
I think it might be A. mouse sorry if I get it wrong tho hope it’s right.
7 0
3 years ago
Read 2 more answers
If I delete the emoji free app will I still have the emojis on my phone?
egoroff_w [7]
<span>If you delete the Emoji application from your phone there is a possibility the Emoji's will still hang around. It all depends on the way you set up the app on your phone. Some people opt to have settings and changes to the app saved on their SD card and some don't. If you save updates and changes to the app to your SD card you will still have remnants on your phone after deleting the app</span>
5 0
4 years ago
Read 2 more answers
Describe what happens at every step of our network model, when a node of one network...
Lynna [10]

Answer:

Each node on the network has an addres which is called the ip address of which data is sent as IP packets. when the client sends its TCP connection request, the network layer puts the request in a number of packets and transmits each of them to the server.

5 0
3 years ago
Animal wisdom/ the last wolf .compare and contrast the overall feeling of each poem
masha68 [24]
List the poem please. I won’t be able to answer without it.
3 0
3 years ago
Other questions:
  • In database systems, the dbms enforces rules about which user can perform which action when. The rules are known as ________.
    10·1 answer
  • C2.5 - A group of four pirates has a treasure chest and one unique lock and key for each pirate. Using hardware that is probably
    6·1 answer
  • Which group on the Home Ribbon contains the line spacing attribute?
    9·2 answers
  • A right turn should be from the right lane into the right lane of the roadway entered. True or false. A. True B. False
    11·1 answer
  • What is a digital certificate? Select one: a. It is a means of establishing the validity of an offer from a person, entity, web
    7·1 answer
  • To save a file so that it can be opened on most computers, select the ____ option.
    10·2 answers
  • Join zoom meet for time pass purpose <br><br>id=547 458 9345<br>pw=sencHURI​
    8·2 answers
  • How do you use VMware Fusion to make a Tip Calculator?
    10·1 answer
  • Linux is a kind of software whose code is provided for use, modification, and redistribution. what kind of software is this?
    5·1 answer
  • Write an algorithm for a program which inputs the lengths a, b and c of the three sides of a triangle. The program then determin
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!