Write a Python program that prompts the user to enter a String, then uses a loop...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a Python program that prompts the user to enter a String, then uses a loop to count how many upper case vowels ("AE"TOU") are there in the string. It also adds the letters of the string to a list called string/List and prints the list and number of vowels at the end.. Hint. Use the append () method to add to the list Support your code with python Comments (5% of the grade) Example: Enter string: "I Own 3 1-Phones Output: String List: [' 'O w. 'n 31 P. n. o. n. e. 's'] Number of Upper-case vowels: 3 Write a Python program that prompts the user to enter a String, then uses a loop to count how many upper case vowels ("AE"TOU") are there in the string. It also adds the letters of the string to a list called string/List and prints the list and number of vowels at the end.. Hint. Use the append () method to add to the list Support your code with python Comments (5% of the grade) Example: Enter string: "I Own 3 1-Phones Output: String List: [' 'O w. 'n 31 P. n. o. n. e. 's'] Number of Upper-case vowels: 3
Expert Answer:
Answer rating: 100% (QA)
Heres a Python program that prompts the user to enter a string counts the number of uppercase vowels ... View the full answer
Related Book For
Starting Out With Java From Control Structures Through Data Structures
ISBN: 9780133957051
6th Edition
Authors: Tony Gaddis
Posted Date:
Students also viewed these programming questions
-
Many countries have been described as information money . How does this affect productivity measurement and productivity comparison between countries?
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Assessment Description This is a group presentation done face-to-face or online (through Big Blue Button on Moodle). In groups of four or five (to be selected by the lecturer), students will present...
-
Perhaps more surprising to Mr. Pitkin was a proposal by the VP of Marketing to make a major investment in market share by increasing promotional expenditures by $2.5 million during 1998-2000. Sales...
-
A dry cleaning firm has 12 employees: 7 women and 5 men. Three of the women and five of the men are 40 years old or older. The remainder are over 20 years old and under 40. If a person is chosen at...
-
The postclosing trial balance of the general fund of the town of Pine Ridge on December 31, 20X1, is as follows: Additional Information Related to 20X2 1. Estimated revenue consisted of property...
-
What is Lean SE?
-
Consuelo Chua, Inc., is a disk drive manufacturer in need of an aggregate plan for July through December. The company has gathered the following data: COSTS Holding cost.................$8/disk/month...
-
a B 0 b A Note: Triangle may not be drawn to scale. Suppose a 168 and 6 = 95. Find an exact value (report answer as a fraction). You will need to determine the length of the missing side first....
-
Required Edutech Ltd is an online education institution that provides online education to tertiary learners who are pursuing undergraduate degrees, certificates, and diplomas. Edutech Ltd expanded...
-
Valentine's Peanuts is a company that makes and sells peanut snacks. Data costs and prices per pack of nuts are: Selling price Variable Cost Raw materials Salary Costs Factory Overhead Costs Cost of...
-
Sessions Petroleum hires a drilling contractor to drill a well. The contract specified that the well was to be drilled to a depth of 10,000 feet at a cost of $400,000. The $400,000 cost includes...
-
Based on your second interview (mini case 3), revise your interface design. Then submit your work from the previous three mini cases and this revision in a professional and complete deliverable to...
-
The per tyre price structure of a cycle made by the Cycle Company Ltd. is as follows: This is based on the manufacture of 1 lakh tyres per annum. The company expects that due to competition, they...
-
The balloon expands as it rises, keeping the pressures inside and outside the balloon approximately equal. If the balloon rises slowly, heat transfers will keep the temperature inside the same as the...
-
For two main reasons, many entrepreneurial firms aspire to be bought by larger companies. First, by selling to a large firm, an entrepreneurial venture is able to create a liquidity event for its...
-
Mr. Peters purchased shrubs and trees for his yard for a total of $260. The shrubs cost $25 each and the trees cost $110 in total. Write an equation to determine the number of shrubs purchased.
-
The liquidliquid extractor in Figure 8.1 operates at 100F and a nominal pressure of 15 psia. For the feed and solvent flows shown, determine the number of equilibrium stages to extract 99.5% of the...
-
Write an if statement that displays the message "The number is valid" if the variable speed is within the range 0 through 200.
-
Write an applet that simulates a stopwatch. It should have a Start button and a Stop button. When the Start button is clicked the applet should count the seconds that pass. When the Stop button is...
-
Why isnt it necessary to call the setVisible method to display an applet?
-
A vertical cylinder containing helium gas is filled with a piston of \(50 \mathrm{~kg}\) mass and crosssectional area of \(0.025 \mathrm{~m}^{2}\). If the atmospheric pressure outside the cylinder is...
-
The Joule-Thomson coefficient for any gas at inversion point is (a) 1 (b) 0 (c) 2 (d) 3
-
For an ideal solution, isotherm on an enthalpy-concentration diagram will be (a) Parabola (b) Hyperbola (c) Sine curve (d) Straight line
The Travelling Vet From Pets To Pandas My Life In Animals 1st Edition - ISBN: 1760633208 - Free Book
Study smarter with the SolutionInn App