Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can somebody helps this with python 3? Write a function, count_vowels, that takes one string as a parameter and counts the number of vowels in

image text in transcribed

can somebody helps this with python 3?

Write a function, count_vowels, that takes one string as a parameter and counts the number of vowels in that string ("a", "", "e", "o", and "u") and returns that number. Make sure that your function is case insensitive (hint: use str.lower or str.upper))! You are welcome to use the str.count0 function as well! For example: Test c-count_vowe ls("banana") Result prinic c count-vowels("Alan Turing") - print(c)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2005 For Windows Mobile Web Office And Database Applications Comprehensive

Authors: Gary B. Shelly, Thomas J. Cashman, Corinne Hoisington

1st Edition

0619254823, 978-0619254827

More Books

Students also viewed these Databases questions