Sort List of Strings in Python (Example) | Reverse Order of Items | Ascending & Descending Ordering

preview_player
Показать описание
Python code of this video:

string_list = ["Statistics", "Data", "Science", # generating an example float list
"Python", "String", "Hello"]
print(string_list) # print example list

print(string_list) # printing the sorted list
# ['Data', 'Hello', 'Python', 'Science', 'Statistics', 'String']

print(string_list) # printing the sorted list
# ['String', 'Statistics', 'Science', 'Python', 'Hello', 'Data']

Follow me on Social Media:

Рекомендации по теме