I'm trying to sort with Python, how do I do it? (Sort by string array) (Example: list[0]President, list[1]Accusation => list[0]Accusation, list[1]President Kim)
python
a = ["President Jang", "President Wang", "President Choi", "President Kim"]
b = sorted(a)
print(b)
>> ["President Kim", "President Wang", "Chairman", "President Choi"]
Korean = ["M", "N", "H", "C", "G"]
korean = sorted(korean)
print(korean)
© 2024 OneMinuteCode. All rights reserved.