Write a loop that counts the number of space characters in a string. Recall that the space character is represented as ' '.

Answers

Answer 1
Answer:

Answer:

I am writing Python program.

string = input("Enter a string: ")

print(string.count(' '))

Explanation:

The first statement takes input string from the user.

input() is used to read the input from the user.

The next statement uses count() function to count the number of times the specified object which is space ' ' hereoccurs in the string.

The print() function is used to return the number of times the space occurs in the string entered by the user.

Output:

Enter a string: How are you doing today?

4

The screenshot of program and its output is attached.


Related Questions

Give an example of a function from N to N that is:______.a) one-to-one but not onto b) onto but not one-to-one c) neither one-to-one nor onto
The section on the Publisher screen that allows you to quickly move from one page another in a publication is the _____. View tabPage panePage Design tabZoom bar
_ is the adherence to a personal code of principles.EthicsMoralityIntegrityHonestySection B
The sql standard prescribes three different types of __________ operations: left, right, and full.
Consider the following instruction: OR( %1111_0000, AL ) ; After its execution, what will be true about the bits stored in AL?

"Write an SQL query that displays the Ssn and Last name of all employees who is a supervisor of a Department Manager"

Answers

Answer:

SELECT Ssn,

             Last_name

 FROM employees

WHERE position = supervisor;

Explanation:

SELECT is an SQL query statement that is used to initiate the display of wanted variables.

The names of the variables often succeed the SELECT statement and they are separated by commas.

FROM is an SQL query statement that indicates the table fro which the selected variables be displayed.

WHERE is used to filter your search and return only rows that meet the criteria.

; signifies the end of a query and calls for an execution.

The italic button is located on the

Answers

It is located on Mini Tool Bar 

All of the following are strengths of the Internet as a source of information except

Answers

Answer: C

Explanation: Using the process of elimination can rather easily get you the answer. The internet is constantly updating as things happen, so A is true. B is true as well because a simple googling of a question can get you the answers or facts of said question. D applies under the same vain as A. So C is the only possible answer.

Regarding computer protection, quarantining is defined as ________. Select one: A. placing a found virus in a secure area on the hard drive B. deleting an infected file C. repairing an infected file D. updating your antivirus software

Answers

Answer:

A. placing a found virus in a secure area on the hard drive

Explanation:

When a file is defected in a computer, quarantining is applied to prevent other parts of the computer. The infected file is isolated and if you let your antivirus software, it can delete the infected file.

Constructing a concurrent server by spawning a process has some advantages and disadvantages compared to multithreaded servers. Discuss a few.

Answers

Answer:

The advantage and the disadvantage of the relevant query are illustrated in the explanation in the paragraph below.

Explanation:

Advantage:

  • The benefit of creating a simultaneous server through spawning a mechanism seems to be that alternative methods are shielded against everyone else, which would be very necessary whenever the extremely database manages communication services entirely.

Disadvantage:

  • The downside about creating a concurrent system through spawning a methodology seems to be that this process seems to be very expensive but using multicore processing systems should save this expense. It is also easier when using threads again for the aim of communicating between two or even more participants although we stop the kernel executing the correspondence.

Bargain Bob's auto dealership sells vehicles. He sells Chrysler, Jeep, and Dodge brand vehicles. He tracks customer and manufacturer. Bob tracks only the main owner—all co-owners and co-signers are recorded elsewhere.Based on the description above, what is the maximum cardinality between each instance of "Customer" and "Vehicle?"

Answers

Based on the given description in the question, the maximum cardinality assignment of the customer and vehicle is; one customer to one vehicle mapping

Cardinal Mapping

Cardinality is simply defined as the mapping of entities or group of entities to a certain cardinal value. This means that cardinality seeks to highlight the relationship between two objects such as eggs in a crate or shoes on a rack.

Now, in this question, we see that the car dealer sells one car to a customer and tracks the customer and manufacturer for that particular vehicle. This is simply 1 to 1 mapping and as such the maximum cardinality assignment of the customer and vehicle is one (1) to one (1) mapping.

Read more on Mapping at; brainly.com/question/1625866

Answer:

Customer(1) - (1) Vehicle.

Explanation:

Cardinality is the mapping of entities or group of entities to a cardinal value. It tries to show the relationship between two objects like a cups in a shelf or plates in racks.

The car dealer in the question, sells one car to a customer and keep or prioritise the record of the main owner of the acquired vehicle. So the maximum cardinality assignment of the customer and vehicle is one (1) to one (1) mapping.