python program to sort words alphabetically code example Example: python how to sort a list alphabetically print(sorted(("snow", "glacier", "iceberg")))