Kindly help me answer the below questions and probide the source code and output. Note! I will give you an upvote for co

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post by answerhappygod »

Kindly help me answer the below questions and probide the source code and output.
Note! I will give you an upvote for correct answers.
Kindly Help Me Answer The Below Questions And Probide The Source Code And Output Note I Will Give You An Upvote For Co 1
Kindly Help Me Answer The Below Questions And Probide The Source Code And Output Note I Will Give You An Upvote For Co 1 (85.52 KiB) Viewed 27 times
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().
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply