Question: in python code, please help Part I Exercise 1 Start your program by defining a list of your favourite fruits (for example banana, strawberry, kiwi,


Part I Exercise 1 Start your program by defining a list of your favourite fruits (for example banana, strawberry, kiwi, orange). Then display the list of favourite fruits separated by the \symbol. Note your solution should use a loop as it should work for any list of fruits, regardless of the number of fruits it contains. Sample run: See the below sample run: Enter an integer: 10 Enter an integer: 23 Enter an integer: 52 Enter an integer: 63 Enter an integer: 84 Enter an integer: 65 Enter an integer: 12 Enter an integer: 10 Enter an integer: 96 Enter an integer: 5 We just built the following list: [10,23,52,63,84,65,12,10,96,5] The 1st element in your list is: 10 The 2 nd element in your list is: 23 The 3rd element in your list is: 52 The 4 th element in your list is: 63 The 5 th element in your list is: 84 The 6 th element in your list is: 65 The 7th element in your list is: 12 The 8th element in your list is: 10 The 9 th element in your list is: 96 The 10th element in your list is: 5 Exercise 3 Write a function wordParity with a unique parameter text (of type string), that returns True if the number of characters of text is even and False otherwise. Add a small docstring to describe your function. In the main program, ask the user how many words he would like to enter, then ask him to enter these words and finally display the number of words with even parity. See sample run below: Enter the number of words to be checked: 4 Enter word 1 : This Enter word 2 : lab Enter word 3 :is Enter word 4 : easy You entered 3 words of even length help(wordParity) Help on function wordParity in module _main wordParity(text) returns True if the length of text is eve
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
