filmov
tv
Sort List of Strings in Python (Example) | Reverse Order of Items | Ascending & Descending Ordering
Показать описание
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:
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: