#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    3
    Rep Power
    0

    Urgent. turtle function bubble sort


    ...............................
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    138
    Rep Power
    2
    1. Please use code tags when posting code

    2. Elaborate on what it is that "doesn't work", is it your color changing or the bubble sort?
  4. #3
  5. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,701
    Rep Power
    480
    Code:
    drawAction_color("blue")
    for n in range(len(lst)):
        drawAction(lst, width)
    Neither drawAction this nor drawAction that are defined.

    Are you trying to illustrate bubble sort? Try this link. (You can safely skip ahead to 54 seconds.)
    [code]Code tags[/code] are essential for python code and Makefiles!
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    138
    Rep Power
    2
    Originally Posted by b49P23TIvg
    Are you trying to illustrate bubble sort? Try this link. (You can safely skip ahead to 54 seconds.)
    [offtopic]
    I love that video. All sorting algorithms should be taught by dancing videos.

    [/offtopic]
    http://www.catb.org/esr/faqs/smart-questions.html#code
  8. #5
  9. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,701
    Rep Power
    480
    I haven't found a qsort dance. Wanna get together and swing? (I'll help provide music.)
    [code]Code tags[/code] are essential for python code and Makefiles!
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2013
    Posts
    138
    Rep Power
    2
    Absolutely! But it will be a very limited demonstration of sorting with only two people dancing.
    http://www.catb.org/esr/faqs/smart-questions.html#code

IMN logo majestic logo threadwatch logo seochat tools logo