Complete the following function according to its docstring. def more_upper_than_lower(message: str) -> bool:   """Return True if and only if a message contains more uppercase letters than lowercase letters. >>> more_upper_than_lower(‘I LOVE Caps Lock! :D') True >>> more_upper_than_lower('Does THIS Work?')   False   """

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter3: Performing Calculations With Formulas And Functions
Section: Chapter Questions
Problem 4.9CP
icon
Related questions
Question
Complete the following function according to its docstring.
def more_upper_than_lower(message: str) -> bool:
  """Return True if and only if a message contains more uppercase letters than lowercase letters.
>>> more_upper_than_lower(‘I LOVE Caps Lock! :D')
True
>>> more_upper_than_lower('Does THIS Work?')
 
False
  """
Expert Solution
steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning