Language is Python
9.9 LAB: Count input length without spaces, periods, exclamation points, or commas

Given a line of text as input, output the number of characters excluding spaces, periods, exclamation points, or commas.

Ex: If the input is:

Listen, Mr. Jones, calm down.
the output is:

21

Answers

Answer 1

Answer:

text = input('Please enter a line of text')

text = text.replace(" ", "")

text = text.replace(".", "")

text = text.replace("!", "")

text = text.replace(",", "")

print(len(text))

Explanation:

i answered this same exact question the other day.

line by line, the first line asks for input with a prompt.

the second line replaces spaces, the next one replaces periods, the next exclamation marks, the next commas. then the last line prints the total number of characters

Answer 2

In this exercise we have to use the computer language knowledge in python to write the code as:

the code is in the attached image.

In a more easy way we have that the code will be:

text = input('Please enter a line of text')

text = text.replace(" ", "")

text = text.replace(".", "")

text = text.replace("!", "")

text = text.replace(",", "")

print(len(text))

See more about python at brainly.com/question/26104476

Language Is Python9.9 LAB: Count Input Length Without Spaces, Periods, Exclamation Points, Or CommasGiven

Related Questions

What was the most surprising thing you learned this term? Why did it surprise you? ​

Answers

Answer:

is this just a small question you are asking the world?

Explanation:

because i am not fully understanding this, could you please give further detail?

Thiết kế biểu đồ thực thể liên kết và tập lược đồ cơ sở dữ liệu quan hệ cho các bài toán quản lý sau:
Bài toán 1. Bạn cần một cơ sở dữ liệu để quản lý thông tin về các tạp chí. Với mỗi tạp chí bạn cần quản lí tên tạp chí, số ISSN (mã số công bố của tạp chí), số phát hành và năm phát hành. Dữ liệu về các bài báo trong tạp chí bao gồm: tiêu đề bài báo, trang bắt đầu và trang kết thúc của bài báo trong tạp chí (nghĩa là bài báo bắt đầu từ trang nào, và kết thúc ở trang nào trong tạp chí). Giả thiết rằng không có hai bài báo nào có cùng tiêu đề. Mỗi bài báo được viết bởi một vài tác giả. Mỗi tác giả bạn sẽ lưu các thông tin về tên, địa chỉ email và địa chỉ cơ quan.

Answers

Answer:

sorry please write in English than i help.you i don't understand your language

Number 1 is what part of an application







Title Bar


Ribbon


Quick Access Toolbar


Status Bar

Answers

Answer:

The correct answer is Quick acces tool bar. You litteraly probably don't even use brainly anymore lol.

Explanation:

I absolutly confirm this is correct.

The number 1 is the part of an application that is considerably known as the Quick Access Toolbar. Thus, the correct option for this question is C.

What does the Quick Access toolbar contain 1 point?

The customizable Quick Access Toolbar contains a set of commands that are independent of the currently displayed tab on the ribbon. You can move the Quick Access Toolbar from one of the two possible locations, and you can add buttons that represent commands to the Quick Access Toolbar.

According to the context of this question, the quick access toolbar is located in the title bar of the application window but can be configured to display below the ribbon usually consisting of the number 1 part of an application.

Therefore, number 1 is the part of an application that is considerably known as the Quick Access Toolbar. Thus, the correct option for this question is C.

To earn more about Quick access toolbar, refer to the link:

https://brainly.com/question/13523749

#SPJ6

what is the impact of using computer in office?​

Answers

Answer:

It significantly enhance productivity.It can increase the speed and accuracy of many work processes, which improves overall worker efficiency. Documents can be written and edited much more quickly with the aid of a word processing program, and procedures, such as billing and accounting, can also occur more rapidly and with fewer errors.Computers in the office increase productivity not only in areas such as word processing, data management and information access, but also in information creation, collation and ultimately storage.

The Impact of using computer in the office can not be over emphasised as it generally increase throughput makes work flow fluid and encourages collaboration.

Some other positive Impact of using computer

Some of the positive effects are faster communication, an organisation of data and information, computerisation of tasks, and easier access to the information.

Learn more about impact of computer:

https://brainly.com/question/984271

Types of cloud storag?

Answers

Answer:

There r 3 types of data storage: object storage, file storage, and block storage. Each offers their own advantages and have their own use cases: Object Storage - Applications developed in the cloud often take advantage of object storage's vast scalablity and metadata characteristics.

What is printed when the following code has been executed?
int x = 15;
int y = 4;
System.out.println((2 * x + y) % x);
15
4
34
2
19

Answers

Hey it is 15 hope this helps

how does communication promotes team building​

Answers

Team members must communicate with one another in a way that encourages collaboration and mutual understanding. Trust, message clarity, and loyalty are all enhanced by effective communication. Trust and motivation are eroded by ambiguous, poorly structured communication.

Answer:

Effective communication within a team will build a common purpose among team members that will allow them to reach their goals. ... Strong group communication will create understanding and that understanding will create powerful relationships within a team.

While shopping online, Tucker visits a website that looks outdated and has limited reviews. Which of the following strategies should he use to make sure the site is trustworthy?

Evaluate source credibility.
Fact check.
Use the website anyway.
Look for authenticity.

Answers

Answer:

Evaluate source credibility

Explanation:

cuz it is

Evaluate source credibility is the strategies should he use to make sure the site is trustworthy. Hence, option A is correct.

What is source credibility?

documents released during the last ten years; research publications written by reputable and well-known writers; websites registered by governmental and educational institutions.

the extent to which consumers trust and believe what other people and organizations say about a specific offering or service According to the source credibility idea, when a source promotes itself as credible, people are more likely to be convinced.

The sources can be categorized into three groups: primary sources, secondary sources, and tertiary sources. There are numerous distinct sorts of sources. Since they provide you with direct evidence of the topic you are investigating, primary sources are frequently thought to be the most credible forms of support for your claim.

Thus, option A is correct.

For more information about  source credibility, click here:

https://brainly.com/question/16530693

#SPJ2

I just need question 2 answered. Someone please help I’m on a test!

Answers

Answer:

Principal photography

Explanation:

2p + 1 = -1


please help

Answers

Answer:

this is the start of the equation

Explanation:

2p + 1 = -1

-2 -2

Answer:

I think its -1

Explanation:

2p+1=-1

2p+1-1=-1-1 minus one from each side

2p=-2 divide both sides by 2

2p/2=-2/2

p=-1

what are the components of computer system??

Answers

Answer:

1. A motherboard.

2. A Central Processing Unit (CPU)

3. A Graphics Processing Unit (GPU), also known as a video card.

4. Random Access Memory (RAM), also known as volatile memory.

5. Storage: Solid State Drive (SSD) or Hard Disk Drive (HDD)

(Please give me brainliest)

1. The jargon for navigating on the Internet is called: A. surfing B. selecting C. clicking D. analyzing​

Answers

Answer:

A. surfing

Explanation:

Browsing the internet is known as surfing the internet.

Which term describes the variable x in this program?

x = int(input("Enter a score or enter -1 to end. "))

while x != -1:

x = int(input("Enter a score or enter -1 to end. "))

an iteration counter
a sentinel value
a string counter
a loop counter

Answers

Answer: a sentinel value

Explanation:

a sentinel value is a value that is used as a condition to end the program. notice that it says "enter -1 to end"

What do you understand by the term input, output, processing and storage.​

Answers

Explanation:

The hardware responsible for these four areas operates as follows: Input devices accept data in a form that the computer can use; they then send the data to the processing unit. ... Output devices show people the processed data-information in a form that they can use. Storage usually means secondary storage.

Answer:

input is any information that are given by user and output is the meaningful results that displays in screen and processing means the actions of computer to convert input into output and storage is the last stage where the data and information held for future. I hope you like the answer

CPU is also called RAM.
True or false.​

Answers

Answer:

False

Explanation:

RAM works in conjunction with the central processing unit (CPU). If RAM is the temporary memory, you can think of the CPU as the brain of the computer. The CPU chip retrieves data from the RAM

FALSE ...

BECAUSE RAM IS A MEMORY AND CPU IS A UNIT OF COMPUTER THAT'S WHY IT IS FALSE

The theory of plate tectonics evolved from previous theories and concepts put forward by several scientists before its conception. Which theories and concepts are part of this evolution? I. continental drift III. convection current II. seafloor spreading IV. internal structure of Earth

Answers

Answer:

I. Continental drift.

Hope this helps

We know that February has either 28 or 29 days, but there is a year in the future, February will have 30 days
What exactly is this year?

Answers

Answer:

39 days is the offensive number

Explanation:

cuz calendar no have that numer

Philip took pictures with his smartphone and save them into his computer unless you delete the photos from the computer they will remain strong because the a computer has a​

Answers

Answer:

Storage drive

Explanation:

1. Philip took pictures on a smartphone; given

2. Philip saved pictures from smartphone onto computer; given

Philip saved the pictures onto the computer. This means that the data was transferred from the phone's storage drive onto the computer's storage drive. Storage drives are strong/hard storage mediums. This means that the storage drive will not be deleted on each start-up, unlike weak/soft storage of random access memory (RAM).

HDD = Hard Disk Drive; strong/hard medium (non-volatile); a mechanical actuator etches data into magnetic platters.

SSD = Solid State Drive; strong/hard medium (non-volatile); NAND logic gates on electronically erasable programmable read-only memory (EEPROM) chips are controlled through a SSD controller

RAM = Random Access Memory; weak/soft medium (volatile); Double Data Rate (DDR) Synchronous Dynamic Random Access Memory modules (SDRAM) are controlled most commonly through a central processor unit (CPU) or through a dedicated memory chip (specialized tasks most commonly).

explain how communication in fuses management efficiency​

Answers

Explanation:

Effective communication is pivotal in increasing productivity because it directly influences the behavior of the staff and the way they perform. ... That is why it is essential that you practice communicating with your staff. It will improve understanding and, in the result, will elevate productivity and efficiency.

In order to get the maximum functionality out of a device that is plugged in, a user should download the specific ___ for that device.

Answers

I think the answer they are looking for is drivers. You need to download specific drivers for the device to function to its max potential
the answer to that question is Drivers

explain how communication managerial efficiency​

Answers

Answer:

The efficiency of manager depends upon his ability to communicate effectively with the members of his organisation. It is only through communication that management conveys its goals and desires, issues instructions and orders, allocates jobs and responsibility and evaluates performance of subordinates.

pls tag me brainliest

Give short introduction of profession and make a list of its types. ​

Answers

are you asking for a list of professional jobs or?…..

Which option is the output of the Functional Requirements of the SRS document?
A.
program modules
B.
data formats
C.
storage capabilities
D.
hardware interfaces
E.
communication interfaces

Answers

Answer:

E

communication interface

what is keyboard buffer tell me the answer nicely and I will give brainlitst​

Answers

Answer:

A keyboard buffer is a very small partition of memory that is usually stored in the computer memory in random access memory (RAM) and captures all the keystrokes made on a keyboard.

Explanation:

phân tích cạnh tranh của cocacola và pepsi

Answers

I don’t understand please speak English

7. What was the original purpose of the network that would become the internet?
A shopping and commerce
B. social media
C. digitizing books
D. military and academic communication

Answers

Answer:

D, Mulitary and Academic communicationj

Explanation: Just did this

Design and implement an application that reads a string from the user then determines and prints how many of eachlowercase vowel (a,e,i,o,and u) appear in the entire string.

Answers

Design and implement an application that reads a string from the user, then determines and prints how many of each lowercase vowel (a, e, i, o, and u) appear in the entire string . Have a separate counter for each vowel. Also count and print the number of nonvowel characters .

SPECIFICATION OF PROMPTS, LABELS AND OUTPUT : Your code should use the prompt "enter string : ". After the input is read, there are six lines of output , each starting with a different label: "a: ", "e: ", "i: ", "o: ", "u: ", "other: " in that order. After each label is the required count.

For example: if "aardvark heebie jeebies" were read in,

Write a program that can add, Subtract, multiply and divide entered numbers.

Answers

In Python:

def add(x, y):

   return x + y

def subtract(x, y):

   return x - y

def multiply(x, y):

   return x * y

def divide(x, y):

  return x / y

For what purpose does a programmer use flowcharts and pseudocode?

A- to execute code
B- to translate code into assembly language
C- to communicate the steps needed to write a program
D- to communicate methods to test code

Answers

When there’s a quizlet theirs a way. So the answer is C. Pls give brainliest.

Which type of game is least likely to need a structured narrative?


a first-person shooter, ,

an adventure game ,

a role-playing game ,

a sports game







Question 4

Answers

Answer:

an adventure game

Explanation:

It is this because people explore more than rather have certain dialouge or storylines like perspective games. so in that case i hope this answer helps!!!

Other Questions
which features of a comedy of manners are present in the passage? check all that apply. witty wordplay an illustration of class differences an emphasis on appearances over morality a commentary on marriage the differences between country and city life need help with homework plz and thank u :) How was life hard or unfair for citizens during the war? Cite examples from the movie to support your answer. movie WarHorse Which excerpt from Click It or Ticket Mobilization Media Campaign best achieves the purpose of informing people that seat belt laws are enforced nationwide? Find the value of 15625 (-2) + (-15625) 98 People who are exceptionally tall (like seven feet and over) often have a disorder that causes them to keep growing past the age most people do in their late teens. What gland would this disorder be associated with?A. adrenalB. thyroidC. pituitaryD. pancreas reflective thought about Charles Cooley of his theory of self?? Look at the arithmetic pattern shown here.Select the Hint button to view a hint.Using the variable n for the term, describe the sequence. (Select All That Apply)Andrew Carnegie did which of the following?made his fortune by producing steel more efficiently.was one of the innovators responsible for making the U.S. a world economicpower.established a network of radio companies.set up telegraph offices in the United States and Europe, write 7/571 as a mixed number! In a vacuum light travels at which speed? the client is admitted to the telemetry unit diagnosed with acute exacerbation of congestive heart failure (chf). which signs/symptoms would the nurse expect to find when assessing this client? Select the type of health being described in the statement. Edward buys a bicycle online for 254.75$ if shipping and handling are an additional 24% of the price how much shipping and handiling will Edward pay HELP PLEaseeeeeeeeeeeee thank youi How would the governor be chosen according to the Constitutional Convention of 1835?by votersby justicesby slaveholdersby the state assembly 1. How are passive and active prosthetic devices the same? (1 point)Both are bionic.O Both regenerate tissue.Both replace missing limbs.Both require stem cells to function. please help with the question attachedI need it in an hour https://screenshot.best/2QA8H0 How have democratic values influenced the past and present