Lesson 03: Coding Exercise

In this exercise, I want you to do the following:

  1. Create a string with an object name of your choice that reads as follows: “Hello, my name is Tom and I enjoy hanging out with Pandas.”
  2. Replace the comma with nothing. Make this into a new object and print it off.
  3. Split the entire string into a list of words and make that into a new object. Then, print it off.
  4. Create a new object in which you make the entire original string lowercase. Print that off.
  5. Create a new object in which you make the entire original string uppercase. Print that off.
  6. Finally, find out how many times the letter “a” appears in the string.

If you get stuck in this exercise, feel free to look at the Lesson 03: Cheat Sheet. If you have managed to do this exercise without issue, take the Lesson 03: Quiz!