Question: Write the Script in Python. courseCategories = [Mathematics,Computer Science,Business,Economics,Literature,Art,Music] Sample of the output. It should look same as the output. 'SR' - Sort a. b.

Write the Script in Python.

courseCategories = ["Mathematics","Computer Science","Business","Economics","Literature","Art","Music"]

Write the Script in Python. courseCategories = ["Mathematics","Computer Science","Business","Economics","Literature","Art","Music"] Sample of the

Sample of the output. It should look same as the output.

output. It should look same as the output. 'SR' - Sort a.

b. 1. This operation will display the list before being sorted Display

'SR' - Sort a. b. 1. This operation will display the list before being sorted Display the list to the user after being sorted 2. 'CC-Character Count This operation will prompt the user for an index as an integer that will be the location to reference in the list If the integer is less than 0 or greater than the last possible index in the list, display the following error message: a. b. i. "You entered an invalid index!" If the integer is a valid index value, display the value in the list at that index along with its associated length using the following message: c. i. "The value at index is and is characters long." "SR' - Sort MENU *SR Sort * CC Character Count* *AS Add String EX EXIT Enter your choice: Sr BEFORE SORT ['Mathematics', "Computer Science', 'Business', 'Economics', Literature', 'Art', 'Music'] AFTER SORT:'Art', 'Business', 'Computer Science','Economics', 'Literature', 'Mathematics', 'Music' End of Project #4 End of Pryect "i CC'-Character Count Valid Index Value MENU *SR- Sort *CC- Character Count * * AS - Add String *EX - EXIT Enter your choice: cc Enter an index for the list: 5 The value at index 5 is Art and is 3 characters long End of Project #4 Invalid Index Value MENU *SR- Sort *CC - Character Count * * AS - Add String * EX - EXIT Enter your choice: cc Enter an index for the list: 10 You entered an invalid index! End of Project #4

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!