Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PYTHON E26. Use the sorted function to make a sorted copy of your books list and display the sorted list. [] E27. Use the sort
PYTHON
E26. Use the sorted function to make a sorted copy of your books list and display the sorted list. [] E27. Use the sort method to sort your books list and display it. [] E28. Use the sort method to sort your books list in reverse order and display it. C Splitting and Joining Strings E29. Consider the string variable given below. data = 'apple banana orange grapes pears' E30. Use split to divide the string into a list of 5 strings, where each string in the new list is one of the fruits from the data string. U E31. Now, working from your list, use the join method to rejoin the fruits, placing 3 dashes in between each adjacent pair of fruit. The displayed result should be 'apple---banana---orange---grapes---pears'. Don't use the replace method for strings! []Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started