In Python, program a function called "capitalizePhrases", with the following heading: # capitalizePhrases: str -> str # It receives a string with several sentences separated by ".", Where all its letters are in # uppercase and delivers the same string but with the first letter of each sentence in uppercase # and the others in lowercase: # Example: capitalizePhrases("HELLO.THAT WELL IT DIDN'T RAIN SO MUCH TODAY.BE CAREFUL."), # must deliver: "Hello.That well it didn't rain so much today.Be careful." # Observation: both in entry and exit, there is no space after a point. # Also suppose that both input and output do not include accents. (á, ó, etc.) def capitalizePhrases(upperText):

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter7: User-defined Simple Data Types, Namespaces, And The String Type
Section: Chapter Questions
Problem 3PE
icon
Related questions
Question

In Python, program a function called "capitalizePhrases", with the following heading:

# capitalizePhrases: str -> str
# It receives a string with several sentences separated by ".", Where all its letters are in
# uppercase and delivers the same string but with the first letter of each sentence in uppercase
# and the others in lowercase:
# Example: capitalizePhrases("HELLO.THAT WELL IT DIDN'T RAIN SO MUCH TODAY.BE CAREFUL."),
# must deliver: "Hello.That well it didn't rain so much today.Be careful."
# Observation: both in entry and exit, there is no space after a point.
# Also suppose that both input and output do not include accents. (á, ó, etc.)
def capitalizePhrases(upperText):

Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr