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
Ede4ka [16]
4 years ago
6

"Write a function named remove_all that accepts" a string and a character as parameters, and removes all occurrences of the char

acter. For example, the call of remove_all("Summer is here!", 'e') should return "Summr is hr!". Do not use the string replace function in your solution.
Computers and Technology
1 answer:
neonofarm [45]4 years ago
7 0

Answer:

def remove_all(text, char):

   return ''.join(x for x in text if x not in char )

           

print(remove_all("Summer is here!", 'e'))

Explanation:

- join() method in Python takes all the element in the string and joins them. However, inside the <em>join</em> method, we <u>excluded</u> the elements that equals to <em>char</em> in the <em>text</em>

You might be interested in
Why are iterators useful?
Marina CMI [18]
It is d because I said it is
6 0
3 years ago
There are two activities on your schedule, which are: 1) install server in lab 2) move server into the data center. however, the
astra-53 [7]
Quality Assurance or testing.
4 0
4 years ago
A(n) ______of the audio or video clip makes the content easily accessible to people with hearing disabilities.
defon

subtitles

hope that helped you

7 0
4 years ago
Read 2 more answers
A company that connects through your communications line to its server, which connects you to the Internet, is a(n)
hammer [34]
Internet server provider
4 0
3 years ago
Helpppppppppppppp me pl;s
Natasha_Volkova [10]

Answer:

Option C or 3

Explanation:

solar panels can only produce energy when the sun is shining because all of the energy it produces is stored in a battery which then you use during the dark hours of the day. You also need to maintain the cleanliness of the panels because if they get dusty they will not produce as much energy.

8 0
3 years ago
Other questions:
  • #Write a function called "angry_file_finder" that accepts a #filename as a parameter. The function should open the file, #read i
    13·1 answer
  • So for my Game Design class I have a quiz coming up...I was wondering if someone could answer some of these practice questions,
    7·2 answers
  • You are the system administrator for a medium-sized Active Directory domain. Currently, the environment supports many different
    7·1 answer
  • Where does gateway antivirus scan for viruses
    7·1 answer
  • In C++ Please:
    11·1 answer
  • An automated search feature used by search engines to find results that match your search terms is called spider or
    13·1 answer
  • A={a,b,c,d} B={p,q,r,s} find the value of A-B and B-A​
    13·1 answer
  • What is the purpose of reading in typography
    10·1 answer
  • Can someone urgently help me with my java code? Ive been working on it for hours and its not working.
    15·1 answer
  • In which cipher method are values rearranged within a block to create the ciphertext?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!