Python Forum
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bubblesort
#2
Please don't paste pictures, use text with output tags.

Your bubblesort function is sorting by points (line 6), which is all zeros. So the if condition is never True, and nothing ever gets moved.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Bubblesort - by Augustin1340 - Aug-12-2017, 02:54 PM
RE: Bubblesort - by ichabod801 - Aug-12-2017, 04:49 PM
RE: Bubblesort - by nilamo - Aug-12-2017, 11:34 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020