58.9k views
4 votes
Edhesive 9.10 Question 3

terms = [“Bandwidth”, “Hierarchy”, “IPv6”, “Software”, “Firewall”, “Cybersecurity”, “Lists”, “Program”, “Logic”, “Reliability”]

Edhesive 9.10 Question 3 terms = [“Bandwidth”, “Hierarchy”, “IPv6”, “Software”, “Firewall-example-1
User Sps
by
4.1k points

2 Answers

1 vote

Answer:

your on unit 9 of edhesive?

Step-by-step explanation:

User Rabs
by
5.3k points
4 votes

def swap (ar, a, b):

temp = ar[a]

ar[a] = ar[b]

ar[b] = temp

terms = ["Bandwidth", "Hierarchy", "IPv6", "Software", "Firewall", "Cybersecurity", "Lists", "Program", "Logic", "Reliability"]

print(terms)

for i in range(len(terms)):

for j in (range(i, len(terms))):

if(terms[i] > terms[j]):

swap(terms, j, i)

print(terms)

I got a 100% of edhesive

User Yedidya Reiss
by
5.5k points