I'm following a tutorial which asks me to reverse the list in alphabetical order and then print it. I wrote this code:
visit_list = ["Alaska", "Norway", "Canada", "Germany", "Russia"]
print(visit_list)
print(sorted(visit_list))
print(visit_list)
The problem arises when I try to do it how I thought would work (which it kinda did) by doing the following.
visit_list.sort()
print(visit_list.reverse())
Now this did reverse the list, but the output code came out as simply "None". Why?