16 lines
283 B
Python
16 lines
283 B
Python
|
#!/usr/bin/env python3
|
||
|
# @author 轩辕龙儿
|
||
|
# @date 2022/10/26
|
||
|
# @file NP25.py
|
||
|
|
||
|
def solution():
|
||
|
my_list = ["P", "y", "t", "h", "o", "n"]
|
||
|
print(sorted(my_list))
|
||
|
print(my_list)
|
||
|
my_list.sort(reverse=True)
|
||
|
print(my_list)
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
solution()
|