Question: Can you please code the first 2 exercises on Python and take a screenshot so I can see the coding being used, thank you. Exercise

 Can you please code the first 2 exercises on Python and

Can you please code the first 2 exercises on Python and take a screenshot so I can see the coding being used, thank you.

Exercise 118: Word by Word Palindromes (34 Lines) Exercises 75 and 76 previously introduced the notion of a palindrome. Such palin- dromes examined the characters in a string, possibly ignoring spacing and punc- tuation marks, to see if the string was the same forwards and backwards. While palindromes are most commonly considered character by character, the notion of a palindrome can be extended to larger units. For example, while the sentence Is it crazy how saying sentences backwards creates backwards sentences saying how crazy it is?" isn't a character by character palindrome, it is a palindrome when exam- ined a word at a time (and when capitalization and punctuation are ignored). Other examples of word by word palindromes include Herb the sage eats sage, the herb and "Information school graduate seeks graduate school information". Create a program that reads a string from the user. Your program should report whether or not the entered string is a word by word palindrome. Ignore spacing and punctuation when determining the result. Exercise 119: Below and Above Average (44 Lines) Write a program that reads numbers from the user until a blank line is entered. Your program should display the average of all of the values entered by the user. Then the program should display all of the below average values, followed by all of the average values (if any), followed by all of the above average values. An appropriate label should be displayed before each list of values. Exercise 120: Formatting a List (Solved, 41 Lines) When writing out a list of items in English, one normally separates the items with commas. In addition, the word and" is normally included before the last item, unless the list only contains one item. Consider the following four lists: apples apples and oranges apples, oranges and bananas apples, oranges, bananas and lemons Write a function that takes a list of strings as its only parameter. Your function should return a string that contains all of the items in the list, formatted in the manner described previously, as its only result. While the examples shown previously only include lists containing four elements or less, your function should behave correctly for lists of any length. Include a main program that reads several items from the user, formats them by calling your function, and then displays the result returned by the function. Exercise 118: Word by Word Palindromes (34 Lines) Exercises 75 and 76 previously introduced the notion of a palindrome. Such palin- dromes examined the characters in a string, possibly ignoring spacing and punc- tuation marks, to see if the string was the same forwards and backwards. While palindromes are most commonly considered character by character, the notion of a palindrome can be extended to larger units. For example, while the sentence Is it crazy how saying sentences backwards creates backwards sentences saying how crazy it is?" isn't a character by character palindrome, it is a palindrome when exam- ined a word at a time (and when capitalization and punctuation are ignored). Other examples of word by word palindromes include Herb the sage eats sage, the herb and "Information school graduate seeks graduate school information". Create a program that reads a string from the user. Your program should report whether or not the entered string is a word by word palindrome. Ignore spacing and punctuation when determining the result. Exercise 119: Below and Above Average (44 Lines) Write a program that reads numbers from the user until a blank line is entered. Your program should display the average of all of the values entered by the user. Then the program should display all of the below average values, followed by all of the average values (if any), followed by all of the above average values. An appropriate label should be displayed before each list of values. Exercise 120: Formatting a List (Solved, 41 Lines) When writing out a list of items in English, one normally separates the items with commas. In addition, the word and" is normally included before the last item, unless the list only contains one item. Consider the following four lists: apples apples and oranges apples, oranges and bananas apples, oranges, bananas and lemons

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!