Kindly help me answer the below questions and probide the source code and output.
Note! I will give you an upvote for correct answers.
Save each of the following exercises as a separate file with a name like name_cases.py. If you get stuck, take a break or see the suggestions in Appendix C. 2-3. Personal Message: Use a variable to represent a person's name, and print a a message to that person. Your message should be simple, such as, "Hello Eric, would you like to learn some Python today?" 2-4. Name Cases: Use a variable to represent a person's name, and then print that person's name in lowercase, uppercase, and title case. 2-5. Famous Quote: Find a quote from a famous person you admire. Print the a quote and the name of its author. Your output should look something like the following, including the quotation marks: Albert Einstein once said, "A person who never made a mistake never tried anything new." 2-6. Famous Quote 2: Repeat Exercise 2-5, but this time, represent the famous person's name using a variable called famous person. Then compose your message and represent it with a new variable called message. Print your message. 2-7. Stripping Names: Use a variable to represent a person's name, and include some whitespace characters at the beginning and end of the name. Make sure you use each character combination, "\t" and "\n", at least once. Print the name once, so the whitespace around the name is displayed. Then print the name using each of the three stripping functions, lstrip(), rstrip(), and strip().
Kindly help me answer the below questions and probide the source code and output. Note! I will give you an upvote for co
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Kindly help me answer the below questions and probide the source code and output. Note! I will give you an upvote for co
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!