Downloads/ ht 8 (File X English localhost:8888/notebooks/Downloads/CSE110%20Lab%20Assignment%208%20(File%201_0%20%26%20Exception).ipynb Cjupyter CSE110 Lab Assignment 8 (File I_O & Exception) Last...


Downloads/<br>ht 8 (File X<br>English<br>localhost:8888/notebooks/Downloads/CSE110%20Lab%20Assignment%208%20(File%201_0%20%26%20Exception).ipynb<br>Cjupyter CSE110 Lab Assignment 8 (File I_O & Exception) Last Checkpoint: 6 hours ago (unsaved changes)<br>Logout<br>File<br>Edit<br>View<br>Insert<br>Cell<br>Kernel<br>Widgets<br>Help<br>Trusted<br>Python 3 O<br>• Run<br>Code<br>Task 9<br>Write a python program that will take a string input from the user. Your task is to count the number of vowels and consonants in the string.<br>Using try, if the number of vowels is greater than or equal to the number of consonants, then raise a runtime error. Print 'Number of vowels greater/equal to<br>consonants. Please paraphrase.'.<br>Otherwise, print 'The sentence will work.'.<br>Note: a,e,i,o,u are called vowels and all the other 21 english alphabets are consonants.<br>=====:<br>Example 1:<br>Input:<br>'his age is 10'<br>Output:<br>Number of vowels greater/equal to consonants. Please paraphrase.<br>Example 2:<br>Input:<br>'he is 10 years old'<br>Output:<br>The sentence will work.<br>In [ ]: #to do<br>Task 10<br>8:28 PM<br>* 4)<br>1/4/2022<br>

Extracted text: Downloads/ ht 8 (File X English localhost:8888/notebooks/Downloads/CSE110%20Lab%20Assignment%208%20(File%201_0%20%26%20Exception).ipynb Cjupyter CSE110 Lab Assignment 8 (File I_O & Exception) Last Checkpoint: 6 hours ago (unsaved changes) Logout File Edit View Insert Cell Kernel Widgets Help Trusted Python 3 O • Run Code Task 9 Write a python program that will take a string input from the user. Your task is to count the number of vowels and consonants in the string. Using try, if the number of vowels is greater than or equal to the number of consonants, then raise a runtime error. Print 'Number of vowels greater/equal to consonants. Please paraphrase.'. Otherwise, print 'The sentence will work.'. Note: a,e,i,o,u are called vowels and all the other 21 english alphabets are consonants. =====: Example 1: Input: 'his age is 10' Output: Number of vowels greater/equal to consonants. Please paraphrase. Example 2: Input: 'he is 10 years old' Output: The sentence will work. In [ ]: #to do Task 10 8:28 PM * 4) 1/4/2022

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here