Question: Need both questions answered IN PYTHON PLEASE!! es is divergent if it begins and ends with the same letter of the alphabet. For example, the

Need both questions answered IN PYTHON PLEASE!!

Need both questions answered IN PYTHON PLEASE!! es is divergent if it

es is divergent if it begins and ends with the same letter of the alphabet. For example, the estion 12 (20 points) a is divergent, but the word 'land' is not. area' write a function named getpivergent that computes and returns h divergent and how many are not. the word ow many words in a list of words are Inp strings e runction getDivergent takes a single parameter, words, that is a list of non-empty, owercase Output: The function getDivergent should return a pair of integers in the form of a tuple, the the number of divergent words in words and the second being the number of n- words. ds in For example, the following would be correct output. e', 'secret', 'to', 'a', 'better','health','is', 'exercise' ] >>> print (getDivergent (advice)) (3, 5) Question 13 (20 points) Write a function named printlines. The function printLines should takes one parameter: a string named Line prompt the user for an item of input: the number of times to print line .produce two kinds of output. It should: 1. 2. print out Line the desired number of times return the total number of lines it printed For example, the following would be correct input and output: Number of repetitions? 3 >>> print(count)

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!