Question: 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

PYTHON E26. Use the sorted function to make a sorted copy of

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

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!