WAP to input and store 2o characters in a single dimensional away. display number of vowels, number special characters, number of digits, number of Alphabets, and number of characters equal to A
Answers
Answered by
28
Code: [in Python language]
Explanation:
We import the library to create the array later on. A list is created and a loop is initiated to retrieve the characters. As the characters are being entered, they're being added to the list earlier created. The array is made out of the list once the loop is complete. After that, we set suitable variables to store as the count record for the objective of the question. The required number of loops are initiated to check for various kinds of characters and to store the count of each type of character, as per the question. The final output is printed in appropriate statements.
Similar questions