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]
3 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]3 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
application that will perform a lot of overwrites and deletes of data and requires the latest information to be available anytim
o-na [289]

Answer:

RDS.

Explanation:

A corporation has implemented a software that conducts the number of information overwriting and deleting, which allows the newest details to be accessible whenever the information is examined. As a Software Engineer, they suggest RDS database technologies.

It is an AWS supported controlled SQL DB service that also reinforces the array type DB for the purpose to contain and maintain the information.

3 0
4 years ago
An effective problem statement ensures that
swat32
The software design effectively addresses the issues
6 0
3 years ago
The pci express version 4.0 can provide up to what amount of throughput with 16 lanes for data?
netineya [11]

The PCL express version 4.0 can provide up to 32 gigabytes with 16 lanes for data.

<h3>What is PCI Express?</h3>

PCI Express, often known as PCIe or PCI-e, is a high-speed serial computer expansion bus standard that was developed to replace the previous PCI, PCI-X, and AGP bus standards.

Thus, it is correct to state that the PCL express version 4.0 can provide up to 32 gigabytes with 16 lanes for data.

Learn more about PCI Express:
brainly.com/question/13898111
#SPJ1

4 0
2 years ago
Given a string variable s that has already been declared, write some code that repeatedly reads a value from standard input into
valina [46]

Answer:

The code to this question can be given as:

Code:

while ((s!="Y" && s!="y" && s!="N" && s!="n"))  //loop for check condition

{

cin >> s;  //insert value

}

Explanation:

The description of the following code:

  • In this code, we use a string variable s that has been to define in question.
  • In code, we use a while loop. It is an entry control loop in loop we check variable s value is not equal to "y", "Y", "n" and "N".  
  • In the loop we use AND operator that checks all value together. If this is true So, we insert value-form user input in string variable that is "s".
4 0
3 years ago
How is photography like jazz music?
Wewaii [24]
LIke jazz, photography has fallings that are being implied to the pictures such as the jazz music. These felling or as there commonly know as soul can make great music and even HD pictures in photography.
7 0
3 years ago
Other questions:
  • What is the input output ratio if its 12/23
    7·1 answer
  • What is the property of the Magnetic Lasso tool?
    6·2 answers
  • 1.) How do parks and other green spaces benefit a community?
    7·2 answers
  • How can software be used to protect against hardware failures in systems that embody both? Give two examples of how software can
    14·1 answer
  • A powerboat is about to cross paths with a sailboat under sail. What should the powerboat do
    5·1 answer
  • Which statement best describes desktop publishing?
    10·1 answer
  • Where do charts get the data series names?
    14·1 answer
  • You wrote a program to allow to guess a number chosen randomly.
    10·2 answers
  • compare a 4 core processor 1.3ghz 8 megabytes 16ram and 2 terabyte hard drive to a 2 core 3.9 ghz 2 megabyte cache 4gb ram and 2
    5·1 answer
  • I need help on this, need answer asap.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!