# create an array with the days of the week
day = ["Monday", "Tuesday", "Wednesday", \
    "Thursday", "Friday", "Saturday", "Sunday"]

# output contents of the array, in original order
print("Unsorted: ", end = "")
for i in range(len(day)):
  print(day[i], end = " ")
print()

# 2 nested for-loops to sort the array
for i in range(len(day)):
  for j in range(i + 1, len(day)):
     if day[i] > day[j]:
       day[i],day[j] = day[j],day[i]        

# output contents, in alphabetical order
print("Sorted: ", end = "")
for i in range(len(day)):
  print(day[i], end = " ")
print()