hi i got this program how do i sort this....thanx alot
http://www.ee.umanitoba.ca/~pcard/371/assignment1.py
hotteaboi
0
Newbie Poster
Recommended Answers
Jump to PostThe Python snippet at:
http://www.daniweb.com/code/snippet452.html
contains a fair number of sorting algorithms, all geared to sort a list of integers. Pick one.You can also pick Python's built in ultrafast sort called sorted(). For a good example of sorted() look at:
http://www.daniweb.com/code/snippet506.html
Jump to PostGive me an example of your list.
Also, wouldn't use list as variable name since list() is built-in function, just as len().
All 5 Replies
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
hotteaboi
0
Newbie Poster
bumsfeld
413
Nearly a Posting Virtuoso
hotteaboi
0
Newbie Poster
Dani
3,986
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
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.