New python autodidact: please help with sorting the list "weather" in python using bubble sort, insertion sort, merge sort, quick sort, and selection sort.
nonang
0
Newbie Poster
Recommended Answers
Jump to PostYou'll have to write those sort algorithms yourself. Or search google. To sort a list in Python:
my_list = [1,5,2,8,3,4,7,6] my_list.sort()
All 4 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.