python code edhesive 9.10 question 3:
Instructions
Use the following initializer list, terms:
terms = ["Bandwidth", "Hierarchy", "IPv6", "Software", "Firewall", "Cybersecurity", "Lists", "Program", "Logic", "Reliability"]
Write a sort program to alphabetize the list of computer terms, much like the preceding question. However, this time, define and use a function named swap as part of your solution. The function should take three parameters—the first is the array, and the second and third are the indexes to swap. Print the terms array before and after it is sorted.
Expected Output
['Bandwidth', 'Hierarchy', 'IPv6', 'Software', 'Firewall', 'Cybersecurity', 'Lists', 'Program', 'Logic', 'Reliability']
['Bandwidth', 'Cybersecurity', 'Firewall', 'Hierarchy', 'IPv6', 'Lists', 'Logic', 'Program', 'Reliability', 'Software']
Answers
Answered by
0
Answer:
I don't know the answer
l am answering this question for points
Similar questions
Physics,
4 months ago
Math,
4 months ago
Math,
8 months ago
Social Sciences,
8 months ago
Computer Science,
11 months ago
Social Sciences,
11 months ago
Math,
11 months ago