954,515 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

python sorting

need to make a function that sorts integers from smallest to largest without using
the sort function in python
python must open a file with integers one per line
store the data in a list then print the unsorted list
then bubble sort code sorts the list from smallest to largest
then print the sorted list

p.s. am new to python

patyypol
Newbie Poster
1 post since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

Post your code and explain your problem and what you have done to solve it. Do not forget [code] tags.

pyTony
pyMod
Moderator
5,359 posts since Apr 2010
Reputation Points: 782
Solved Threads: 852
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: