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
sergey [27]
3 years ago
9

Define a function called strip_punctuation which takes one parameter, a string which represents a word, and removes characters c

onsidered punctuation from everywhere in the word. (Hint: remember the .replace() method for strings.)punctuation_chars = ["'", '"', ",", ".", "!", ":", ";", '#', '@']
Computers and Technology
1 answer:
DaniilM [7]3 years ago
8 0

Answer:

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

def strip_punctuation(strWord):

   for charPunct in punctuation_chars:

       strWord = strWord.replace(charPunct, "")

   return strWord

Explanation:

The function is defined with a single argument.

A for loop is ran to check each character of the the word.

If a punction mark is present as a character in the word, it is removed.

The same word is returned but without the punctuation marks.

You might be interested in
Baking Cookies. Sweet Dough Inc. bakes cookies—a popular dessert—based on the quantities ordered by their customers. Three raw m
Daniel [21]

Answer:

answer is E=CD^.6

Explanation:

CD is cookie dough.

E is number of eggs.

by using amount of cookie dough,we can find number of eggs.

8 0
4 years ago
In each iteration, selection sort (small) places which element in the correct location?
Jet001 [13]
The answer is <span>smallest not yet placed.  </span><span>In each iteration, selection sort  places smallest not yet placed element in the correct location.  </span>
7 0
3 years ago
Testing a website includes visiting every web page on the site and selecting every link, tab, and button available.
mixas84 [53]

Answer:

Wouldn't it be false?

Explanation:

because what if the website doesn't allow some kinds of people on certain pages?

(If its wrong then sorry.)

4 0
2 years ago
What role does modern technology play in globalization today?
lana [24]

<span>Advances in technology are one of the main reasons that globalization has escalated in the past decade. In information and communication technology, innovations have become smaller in size, more efficient and often more affordable. In transport technology, vehicles have tended to become larger and faster, as well as becoming more environmentally friendly and cheaper to run. Whether for personal use or for business, technology has made the world seem a smaller place and assisted in the rise of globalization. </span>
6 0
3 years ago
What does the measurement tell you?<br><br> Schedule performance index
Natasha_Volkova [10]

Answer:

how close the project is to being completed compared to the schedule/ how far ahead or behind schedule the project is, relative to the overall project

Explanation:

3 0
3 years ago
Other questions:
  • You discover many errors in a database table. What has been lost?
    15·2 answers
  • one business rule is that each project has one manager. Identify two (and no more than two) problems with the data structure or
    9·1 answer
  • Changing the color of my avatar using a computer program is ok since it doesn't impact anyone else
    12·1 answer
  • ______is a multimodal application software platform. the centrealized and shared database system ties the entire organization to
    14·1 answer
  • What are the details of frame transmission andreception that LAN interface handles?
    7·1 answer
  • In the lab, wireshark continued to capture data in the background until the:
    15·1 answer
  • What is software and explain the five types of software
    5·2 answers
  • (e) Give the output of the following:
    15·2 answers
  • Describe how a black and white image could be represented in binary
    11·2 answers
  • 4.(L.5.1.A) Select the sentence that includes an interjection,
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!