1 user_text = input() 2 3 vowelsCount = 0 4 5 listofvowels = ['a','e','i','o','u','A','E','I','o', 'u'] 6 7 8 for ch in user_text: 10 if(ch in listofvowels): 11 12 vowelsCount = vowelsCount + 1 13 14...


Python:


How do I add the singe quotations to the output as follows:


The text 'Listen, Mr. Adams, calm down.' has 6 vowels.


1 user_text = input()<br>2<br>3 vowelsCount = 0<br>4<br>5 listofvowels = ['a','e','i','o','u','A','E','I','o', 'u']<br>6<br>7<br>8 for ch in user_text:<br>10<br>if(ch in listofvowels):<br>11<br>12<br>vowelsCount = vowelsCount + 1<br>13<br>14 print(

Extracted text: 1 user_text = input() 2 3 vowelsCount = 0 4 5 listofvowels = ['a','e','i','o','u','A','E','I','o', 'u'] 6 7 8 for ch in user_text: 10 if(ch in listofvowels): 11 12 vowelsCount = vowelsCount + 1 13 14 print("The text", user_text, "has", vowelsCount, "vowels.")

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here