0
8.5kviews
Write a Python function that accepts a string and calculate the number of upper case letters and lower case letters
1 Answer
0
1.6kviews

Explanation:-

  • Take a string as a input form the user and pass the string to function char.
  • Initialize 2 variable l and u to 0.
  • Iterate over the characters of the string check of the entered string is in lower or upper case accordingly increment the values or the l …

Create a free account to keep reading this post.

and 3 others joined a min ago.

Please log in to add an answer.