vocab = ['Libraries', 'Bandwidth', 'Hierarchy', 'Software', 'Firewall', 'Cybersecurity', 'Phishing', 'Logic', 'Productivity']
# Print the list before sorting
print(vocab)
# Sort the list
for i in range(len(vocab)):
for j in range(i+1, len(vocab)):
if len(vocab[i]) > len(vocab[j]):
vocab[i], vocab[j] = vocab[j], vocab[i]
# Print the list after sorting
print(vocab)