Question: This is for python 3. Thanks in advance 3) (5 points) Write a function, reverse, that takes a string as a parameter and returns the

This is for python 3. Thanks in advance
 This is for python 3. Thanks in advance 3) (5 points)

3) (5 points) Write a function, reverse, that takes a string as a parameter and returns the reversed version of it. Function cal reverse("bat" reverse("Apple Pe Return value tab P elppA 4) (5 points) Write a function, string stats, that takes no parameters. It asks the user for an item, then prints out the number of vowels (a,ej.o,u), spaces, and consonants in the item. It continues asking the user for an item until the users input is blank. The items may contain spaces, which should not be included in either the vowel count or the consonant count This function should be case-insensitive. You should use the python str.lower O,str.upper), and/or str.count functions to help solve this problem. Note that this function terminates when the user presses enter without typing any input Function cal Output (printed, input in bold underlined Item? d Vowels: string stats paces: Vowels:1 Spacess tem? Vowels: Consonants: Ieem? 5) (5 points) Write a function, absolute day, that, given a year, month, and a day, retuns the absolute day of the year that day corresponds to. You may use the provided get days in month (year, month number) and calendar Ialeap(yearl to solve this problem. See provided code at the end of this write-up Function call absolute day (2019, 11 absolute day (2005, 3. 2) absolute day (20043, 2) Return value 62

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!