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
guapka [62]
3 years ago
3

Given a string consisting of only lowercase characters, create two methods that remove all the consonants or vowels from the giv

en word. They must retain the original order of the characters in the returned strings.
Computers and Technology
1 answer:
Citrus2011 [14]3 years ago
6 0

Answer:

Here the code is given as follows,

Explanation:

Code:  

def filter_vowels(self):

   #create a list of vowels

   vowels=['a','e','i','o','u']

   string=''

   for ch in self:

       #every consonant in given string i.e self is concatinated to string

       if ch not in vowels:

           string=string+ch

   self=string

   return self

def filter_consonants(self):

   #create a list of vowels

   vowels=['a','e','i','o','u']

   string=''

   for ch in self:

       #every vowel in given string i.e self is concatinated to string

       if ch in vowels:

           string=string+ch

   self=string

   return self  

print(filter_vowels('consonants'))

print(filter_consonants('vowels'))

You might be interested in
Ryan is the operations manager for a national financial company. His company is in the process of creating a customer handbook.
Nat2105 [25]

Answer:

Ryan first needs to determine his goals, in his case he is looking for a telecommunications technology that will often need to be updated and revised by others. Once he determines what he is looking for he can start gathering data, and once he's done that he can analyze his choices from the data he's gathered, in his case I would assume he'd be looking at either a wiki or a blog. Now it's time for Ryan to make his decision, I would go with a wiki since a wiki can be updated by many people in diverse locations. He said so himself that employees all over the country would be contributing to it so that is why I think a wiki would best suit him. Now that he's made his decision and can take a step back and evaluate what he has done and make sure he made the right choice.

Explanation:

:)

3 0
3 years ago
I NEED HELP QUICK
Serjik [45]

Answer: keeps confidential documents secure,

displays a GUI, allocates the computer's resources, and retrieves files

Explanation:

The operating system can be defined as the software installed in the system that provides the information and services to the users by controlling the hardware, software resources, and regulates the computer programs. It runs the applications and programs in the system, displays the graphic user interface for the services, stores, manipulates, and retrieves files. It prevents the unauthorized access to the data and programs by using passwords thus provides the security to the system and documents.

8 0
3 years ago
Write an algorithm of telephone call system​
ivolga24 [154]

Answer:

this is the correct answer

3 0
3 years ago
Read 2 more answers
You are the administrator of an organization with a single Active Directory domain. One of your senior executives tries to log o
pickupchik [31]

Answer:

C) modify the user's properties to set the Account Never Expires setting

Explanation:

Based on the scenario being described it can be said that in order to completely make sure that his does not happen again you need to modify the user's properties to set the Account Never Expires setting. Doing so will prevent the executives account from expiring and having to reactivate the account again every time this would otherwise happen.

8 0
3 years ago
Will Mark Brainliest
natta225 [31]

Answer:

Byzantium was located on trade routes and could be better protected.

Explanation:

Byzantium became the capital of the Roman Empire in 330, with the established objective of fulfilling a fundamental role in the control of the commercial routes used by Rome to the East: this city was located in the passage of these commercial routes, thus which was fundamental its protection in order to control trade in the area. In this way, it was agreed to name this city as the capital, which gave importance to the eastern region within the Empire, and allowed these trade routes to be better managed and protected by the Roman government.

7 0
3 years ago
Other questions:
  • Explain in details the evolution of computers​
    14·1 answer
  • A group of researchers is designing an experiment to test whether meditation helps people fall asleep faster. The researchers se
    14·1 answer
  • Describe two ways that using frames helps move data along a network
    15·1 answer
  • How many seconds are required to make a left turn and join traffic?​
    11·2 answers
  • What is the acronym that helps you remember the order of math operations?
    9·2 answers
  • Wireless internet is an example of telecommunications.
    8·1 answer
  • Which pair of features is relevant when buying a pc?
    9·2 answers
  • For (int j- 4; j > 0; j--)
    9·1 answer
  • Drag each tile to the correct box. Arrange the statements in sequence to correctly explain what the field of science includes. a
    7·1 answer
  • Which of these would make text on a slide difficult to read?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!