Create a function named CountVowels() that takes one parameter name epsilon
(in the function)
Create a variable name countNum and set it to zero

Create a for loop that with a lower bound of zero, upper bound of the length of epsilon, and increment of one
(in the loop)
Get the letter in epsilon at the index equal to the value of the looping variable
store this letter into a variable

if the letter is a vowel (a, e, i, o, u)
add 1 to the countNum variable

return countNum


Create a function named ExtractOdds() that takes one parameter name zeta
(in the function)
Create a variable name result and set it to a blank string

Create a for loop that with a lower bound of zero, upper bound of the length of zeta, and increment of one
(in the loop)
Get the letter in epsilon at the index equal to the value of the looping variable
store this letter into a variable

if the value of the looping variable is odd
update result by adding the letter to the end of result


return result

(Main code)
Have the user input a sentence and store the value in variable named sentence_A
Have the user input a sentence and store the value in variable named sentence_B

Call the method CountVowels() passing in sentence_A as a parameter
Print the value returned from calling CountVowels()

Call the method ExtractOdds() passing in sentence_B as a parameter
Print the value returned from calling ExtractOdds()

Answers

Answer 1

def CountVowels(epsilon):

   countNum = 0

   for x in range(len(epsilon)):

       letter = epsilon[x]

       if letter.lower() in "aeiou":

           countNum += 1

   return countNum

def ExtractOdds(zeta):

   result = ""

   for x in range(len(zeta)):

       if x % 2 == 1:

           result += zeta[x]

   return result

sentence_A = input("Enter a sentence: ")

sentence_B = input("Enter a sentence: ")

print(CountVowels(sentence_A))

print(ExtractOdds(sentence_B))

I hope this helps!


Related Questions

Hackers crack hash functions by finding collisions or pre-generating millions of hashes and comparing them until find the one generated it.

A. True
B. False

Answers

Answer:

A. True

Explanation:

Most of the attacks on hash functions are based on finding collisions (so 2 different plain texts will match the same hash) or pre-generating millions of hashes and comparing them until you find the plain that generated it.

If a hash algorithm is reverse-engineerable or can be attacked that way, it's not a good hash algorithm.

Which of the following describes the purpose of project management? planning and organizing resources to meet a goal arranging the order of tasks in a project presenting data in an organized manner producing a quality project

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The question is about selecting the option among given options that best describes the purpose of project management.

The correct option of this question is the purpose of project management is planning and organizing resources to meet a goal.

Because project management is all about planning and organizing resources of a project to meet project goals.

Other options are not correct,

because arranging the order of tasks in a project, presenting data in an organized manner, and producing a quality project- all come under project management- are parts of planning and organizing steps of project management.

The answer is:

Planning and organizing resources to meet a goal

How is a non-disclosure agreement an important tool for businesses?
A. Without it, a person can't be prosecuted for leaking data.
B. It limits certain knowledge to a small group of people.
C. It prevents employees from working for a competitor.
D. It clearly defines for all parties exactly what information is to be
considered confidential.

Answers

Answer:

D

Explanation:

NDA is a nondisclosure agreement or the confidentiality agreement. It is a legal contract or a part of it. It involves at least two parties.

An NDA between you and other parties is a sense of trust and confidence.  They are a vulnerable tool for business and can assist in negotiation. It clearly speaks about the information that needs to be shared.

Hence the option D is correct.

Learn more about the non-disclosure agreement an important tool for businesses.

brainly.com/question/11573661.

What is the error in this?

userGuess = int(input(“Guess a number between 1 and 20: “))

Answers

Most interpreters won't recognize “ “as a quote. You need to use " ". Other than that, your code looks good.

How would you code 135 minutes and turn it into 2 hours and 15 minutes, using integer/modular division, in Javascript?

135 to 2h15

Answers

mins = 135;

alert("There are "+(Math.floor(mins/60))+" hour(s) and "+(mins%60)+" min(s).");

That's how I would do it. I hope this helps!

What programs do coders use in businesses?

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

Software developers or coders use different programs to develop the program. The coders can use different programs in businesses and for businesses.

When a coder develops a program for business. They use different programming software for android, desktop, and web application development. They use different editors, database tools, testing tools, and browsers, etc.  These programs use different programming languages to develop business software such as:

JavaScriptSQLPythonC++ C# Ruby on RailsPHPBootstrapHTML and CSS etc.

 

For hashing to work, it requires that

A. it must be easy to compute the output for any input.
B. it must be hard to compute the input for any output
C. both of the above
D. none of the above

Answers

Answer:

C. Both of the above

Explanation:

A. because the a main purpose of hashing is to store a lot of information in a string of random letters

B. because it is a form of encryption, though not absolutely impossible to break. That's also why it was worded as: it must be hard to...

An expert system used on a medical website accepts an input illness from the user and produces a list of possible symptoms. What type of function is the interface engine performing?
A.
backward chaining
B.
production unit
C.
production rule
D.
forward chaining
E.
knowledge base

Answers

The answer is froward chaining

Answer:

The correct answer would be:

D.

forward chaining

#PLATOFAM

Have a nice day!

If you can't provide proof of insurance to the FLHSMV,
your driver license and license plate can be suspended for
up to
A. 30 days
B. 90 days
C. 1 year
D. 3 years

Answers

B. B. B bbbbbbbbbbbbbbbbbb

Answer:

B 90days

Explanation:

Switching between slide sorter, reading, normal view helps you review your presentation, assess whether the slides have an attractive design and adequate content and make sure they are organized for the most impact.
True
False

Answers

Explanation: TRUE I TOOK THE TEST

Select the correct responses to the questions from the drop-down menus. Which source contains most of Earth’s fresh water? Where is most of Earth’s usable fresh water found? Select the correct responses to the questions from the drop-down menus. Which source contains most of Earth’s fresh water? Where is most of Earth’s usable fresh water found? Select the correct responses to the questions from the drop-down menus. Which source contains most of Earth’s fresh water? Where is most of Earth’s usable fresh water found?

Answers

Answer:

1. ice sheets

2. ground water

Explanation: I got it correct in the quiz.

The source contains most of Earth’s fresh water is Ice Sheets. The most of Earth’s usable fresh water found is Groundwater.

Which source contains most of Earths freshwater?

The icecaps and glaciers are known to have about 68 percent of the world's fresh water and it is found to also have an approximate of 30 percent of ground water.

Conclusively, Note that the source that contains most of Earth’s fresh water is Ice Sheets and the  ice sheet is also called continental glacier.

Learn more about freshwater from

https://brainly.com/question/16339776

#SPJ5

What is the text output by the program?


A. Less than 10
B. Less than 20
C. Less than 30
D. 30 or more

Answers

Answer:

30 or more

Explanation:

30 or more is the answer

Thanks hope that helps my dude

Read the following scenario, and then answer the question.
A family is ready to buy a new computer to replace their 8-year-old machine. The old computer was a Macintosh, and they would like another. They don’t play many games or movies on the machine, but need access to the Internet.

Which is the most important feature of a new computer for this family?
monitor size
operating system
memory
processing speed

Answers

Answer:

Monitor size

Explanation:

Hope this helps

Miranda is using Python 3 as a calculator and wants to divide 1374 by 3. What should Miranda type?
A.
print (1372 divided by 3)

B.
print (1374 )_ 3))

C.
print (1374 / 3)

D.
print (1372 ./. 3)

Answers

Answer:

C

Explanation:

Answer:

C

Explanation:

I got it right on a test.

(On Python/ Edhesive) Test if a date is a payday based on the day of the month (15th or the 30th).

Sample Run
Enter today's day numerically: 17
Sorry, not a payday.
Enter today's day numerically: 30
It's payday!

Answers

Answer:

day = input("Enter today's day numerically: ")

if "15" in day or "30" in day:

print("It's payday!")

else:

print("Sorry, not a payday.")

Explanation:

Ask the user what day it is and store it in a variable called, day. Write a simple if else statement to check if ut is payday or not. This program can be more advanced by having payday be a variable.

How did the printing press make people more intelligent

Answers

Answer:

no

Explanation:

Answer:

the invention of the mechanical movable type printing press helped disseminate knowledge wider and faster than ever before.

"If possible, always bring print-outs of your slides for your audience
members." Is this good advice?
A. If you can, this is always recommended, unless you are assured
everyone will have a tablet and you can share the files online.
B. No, this is not good advice since handouts rarely help the
audience in any manner. The only thing that matters is what the
speaker says.
C. Not really, since it is a lot of work, requiring a lot of paper, and
most people will not need the handouts.
D. Not really, because audience members will never need to review
slide information.

Answers

Answer:

Answer is A I just take the quiz.

Unless you are certain that everyone will have a tablet and can share the files online, it is always suggested to carry the print-out files of the slides.

Why it is important to bring the print-out files of the slides?

When the slides have a lot of component part, it's a good thought to overlap the copies of the presentation. A presentation is a misfortune medium for communicating ecumenical information.

If the audience has print-out files of the slides, they will be more focused on the themes that want to express rather than recalling every detail.

Unless a person knowing for sure that everyone will have a tablet and will be able to share the files online, it is always a good idea to have the print-out files of the slides with you.

Therefore, option A is correct.

Learn more about the audience, refer to:

https://brainly.com/question/1802560

#SPJ2

list all the components of a computer

Answers

Answer:

Motherboard, Central Processing Unit, Memory, Storage, Case, Fans, and Power supply.

Motherboard, Computer Memory, Central Processing Unit, Power Supply Unit, Graphics Processing Unit, Power Supply, USB Ports, Hard Drive, Floppy Drive, CD-ROM Drive, CD-RW Drive, DVD-ROM Drive, Keyboard, Video Card, Sound Card, Speaker, CPU Fan, Touchpad, Network Cards NIC

I’m sorry if I repeated any or left any out. So much stuff goes into making a computer but I hope this helped!

PLEASE HURRY!!!
Look at the image below

Answers

The output will be 18.

numA = 3 and everytime the for loop iterates, the value of the count variable is added to numA.

3 + 4 = 7

7 + 5 = 12

12 + 6 = 18

Is Photoshop vector based or raster based?
*Vector based
*Both
*Raster based
*Neither

Answers

Answer:

Photoshop is raster based asit uses pixels to create images

Answer:

the answer is both

Explanation:

PLEASE HELP
Which option is the correct format of placing HTML tags while coding in HTML?
A.
B.
C.
D.

Answers

Answer:

the 3rd one you put

Explanation:

which of the following commands should be used if a user does NOT want the header which has been created to appear on the first page of the document ???

a ) different first page
b) header from top
c) show document text
d) footer from bottom

Answers

Answer:

a) different first page

Explanation:

The different first page is the commands that should be used if a user does not  want the header which has been created to appear on the first page of the document.

What is header?

A header has been known as the line or block of text appearing at the top of each page of a book or document. in Hyper Text Markup Language(HTML). a header tag is found at the top of a web page. it usually contains a logo, search, navigational links.

A footer is a line or block of text appearing at the foot/bottom of each page of a book or document in HTML, a footer for its nearest sectioning content or sectioning root element. A footer typically contains information about the author of the section, copyright data or links to related documents.

Therefore, The different first page is the commands that should be used if a user does not  want the header which has been created to appear on the first page of the document.

Learn more about HTML on:

https://brainly.com/question/15093505

#SPJ2

Which icon indicates that a layer is protected?
The Lock icon
The Shield icon
0 The Key icon
19
The Eye icon

Answers

Answer:

The lock icon.

Explanation:

A padlock icon, or lock icon, displayed in a web browser indicates a secure mode where communications between browser and web server are encrypted.

What does hashing mean when it comes to cryptography?

A. scramble
B. unscramble
C. sorting
D. categorizing

Answers

Answer:

do you have a picture of it

I think the answer is A! Scramble

What is the right age to start coding in high school?

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The right age to start coding in high school from 6th grade to onward.

Kids, when reach 7 years or above can start coding and learning basic programming. But in high school, the age of students or kids is between 10-12 years.

The kids can start learning programming very basic in early classes. But when they reach the early grade of high school start learning basic programming in which loop, if statement, etc. At 7th and 8th grade and to above onward, programming learning level becomes increasing, basic to intermediate level of programming.

Kids who learn programming in their early life can set themselves for a lifetime of opportunities for success.

What is pollution?
the introduction of harmful substances into the environment
the removal of waste from landfills and other waste collection areas
the addition of organic materials in order to clean dirty air and water
the combination of specific chemicals to decompose garbage

Answers

Answer:

other guy is correct it is A.

Explanation:

Did the quiz and got 100%. Edge 2021

The term pollution is the the introduction of harmful substances into the environment.

What is pollution?

Pollution is known to be the bringing in of contaminants into any natural environment that may lead to adverse change.

Therefore we can say that The term pollution is the the introduction of harmful substances into the environment and thus it is correct.

Learn more about pollution from

https://brainly.com/question/18657523

#SPJ2

whats is mean by voice output devices

Answers

Answer:
Voice output communication aids (VOCAs), also called speech-generating devices (SGDs), are high-tech, augmentative, and alternative communication (AAC) devices that produce speech for an individual who has limited or no means to communicate orally. ... Different algorithms are used to create synthesized speech.

What other jobs would require employees to follow directions very carefully? (Give 4 examples)​

Answers

construction, surgeon, army, teachers

Why don't jumbo jets have propellers?

Answers

Answer:

they are to heavy for tiny propellers to make fly

Explanation:

The distance between two walls is called what?

Answers

Answer:

The Nikuradze mixing-length

Explanation:

Awnser: Mixing length
Other Questions
please help lol. ill give brainliest theres a photo with the question 60 points!! Plz help ASAP This is a persuasive assignment. As you can see theres a picture and we need to use it after you write the scenarios you write which technique you used for this scenarios. 5. It is a beautiful sunny day; you are trying to persuade your friend to go to the beach with you.6. A company that sells toys is trying to convince people to buy their most expensive teddy bear.7. You are running for class president and trying to convince you classmates to vote for you.8. A sports person who earns a huge salary is trying to convince the public that they are not overpaid. pls help ill mark brainliest What was typical of city tenement buildings?O A. Lack of windowsO B. Large, open spacesO C. Private bedroomsO D. Indoor plumbing There are 30 popsicles in thefreezer12 of them are cherry flavored Therest are lime flavored.How many are lime flavored? write y = -2x + 1 in standard form Which is not a part of the cell theory?a. cells are the basic building block for living things.b. all living things are made up of one or more cells.c. animal cells are more advanced than plant cells. Expand.Your answer shouldbe a polynomial in standard form.(-a+1) (5a+6) Does anyone know the answer what has led Nepal to be rich in custom and tradition Elena went to a sporting goods store that was having a sale. She bought a tennis ball and 3 cans of tenis balls The tennis racket normally cost $43. All tenis rackets are marked down 15%. One can of tens balls normally cost $4. The tenis balls are not marked down. The sales tax rate is 8.5% How much will she pay for everything including tax? A veterinarian knows that a 50-pound dog gets 0.5 milligrams of certain medicine and that the number of milligrams, m, varies directly with the weight of the dog, w. The vet uses these steps to find the amount of medicine to give a 10-pound dog.In which step did the veterinarian make the first error? 3x=3x+4 does it have a soultion right nowI want you to stopstop whatever you are doingwalk to a mirrorlook in itlook at your faceyour beautiful facelook at your eyeshow they shineI hope you realizeyou are pretty f-ing amazing How many of each element is in (NH3)2SO4 physical weathering is the breaking of rock into pieces without changing its___composition. Please help me with these 23 question What did the Muslims believe about the Kaaba? The base of a triangle is 3 inches more than 2 times the height.If the area is 7 square inches, find the base and the height.