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
myrzilka [38]
3 years ago
9

To start, define a function called strip_punctuation which takes one parameter, a string which represents a word, and removes ch

aracters considered punctuation from everywhere in the word. (Hint: remember the .replace() method for strings.)
Computers and Technology
1 answer:
soldi70 [24.7K]3 years ago
8 0

Answer:

The code is given below. The punctuation_chars variable contains a list of punctuation to be replaced by the program

Explanation:

def strip_punctuation(word):

   punctuation_chars = ["'", '"', ",", ".", "!", ":", ";", '#', '@']

   for ch in punctuation_chars:

       word = word.replace(ch, '')

   return word

# Testing the function here. ignore/remove the code below if not required

print(strip_punctuation("Hello, how are you. I am good! ,.!#@"))

<u>OUTPUT</u>

Hello how are you I am good

You might be interested in
BRAINLYEST IF CORRECT!!! What is the special feature of the View Side by Side command?
xeze [42]

<u> Allows you to see two parts of the same worksheet side by side</u>

<u>Option: B</u>

<u>Explanation:</u>

The View Side by Side command helps to see the two documents side by side in Word. When using this feature, both the documents open at the same time in different windows side by side.

To view this, click the View tab in Word and then click the View side by side button. Now the document opens in two windows with side by side views. This is used to compare the documents. In case, if we want to disable this view, click the 'View Side by Side' button again so that it comes to the normal view.

6 0
3 years ago
Read 2 more answers
Types of data processing
Semmy [17]

Answer:

5 types

Explanation:

translation

distributed

batch

multi

real time

sorry if I'm wrong

4 0
3 years ago
Match the vocabulary to the appropriate definition.
Allisa [31]

Answer:

Pulling related code together in objects is Arrays

Helps programmers when they revisit code or are new to code-- Documentation

Explanation:

This is all I know

3 0
2 years ago
Write a java program that asks the user to enter a series of integers. when they enter a value of 0, the program should end. if
irina [24]

I have know idea so I guess ask the teacher?
4 0
3 years ago
What is the output of the following program?
Alex787 [66]

Answer:

B:2 should be the first answer

C: 14 the second

7 0
3 years ago
Other questions:
  • Assume that an array named a containing exactly 5 integers has been declared and initialized. Write a single statement that adds
    6·1 answer
  • ​according to your text, digital natives tend to prefer different digital communication channels more than do digital immigrants
    5·1 answer
  • What tool is included with windows 8 that will help you connect to the directaccess server when you have problems and can be use
    6·1 answer
  • If you want the values in your cell to have dollar signs in front of them, _________
    8·1 answer
  • HTML tag that makes a text field used by javascript statement
    6·1 answer
  • What does XD mean? I keep seeing people say it and I dont know what it means
    6·2 answers
  • Long Answer Questions: a. Briefly explain the types of Control Structures in QBASIC.​
    5·1 answer
  • Order the steps for accessing the junk email options in Outlook 2016
    9·2 answers
  • Abby has received a request for a data set of actual data for testing a new app that is being developed. She does not want the s
    13·1 answer
  • Fill in the blanks to help write this professional e-mail:
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!