Here are resources and additional documentation about list comprehensions:
- Understanding Python List Comprehensions: Real Python Video Course
- When to Use a List Comprehension in Python: Real Python Article
- List Comprehensions: Python Docs
The quote used in the example is available here:
"""On a visit to the NASA space center, President Kennedy spoke to a man sweeping \ up in one of the buildings. "What's your job here?" asked Kennedy. "Well Mr. President," \ the janitor replied, "I'm helping to put a man on the moon"."""
matthewmeastman on Jan. 22, 2023
When I run the map() function with the
remove_punctuation, I am I still getting quotes around the words I’m and What’s? I noticed in the video that they were there as well. How do I fully remove those quotes?