Python Forum
CODE for Bubble sorting an unsorted list of 5 numbers.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CODE for Bubble sorting an unsorted list of 5 numbers.
#1
help me write a code to sort a list of 5 unsorted numbers with bubble sort algorithm using "for" loop.
Reply
#2
We'd be happy to help you fix your code, but you need post your code and exactly what the problem you're having is. Please use python and output tags when posting code and results. Here are instructions.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Custom Sorting List of Dictionaries Based on Nested Key and Condition aryasinner 3 1,364 Jul-15-2025, 07:28 AM
Last Post: walterliz
  Random Generator: From Word to Numbers, from Numbers to n possibles Words Yamiyozx 2 2,809 Jan-02-2023, 05:08 PM
Last Post: deanhystad
  sorting a list using unicodes acending order, no loops, no sort(), using recursion lrn2codee 14 11,774 Jun-23-2021, 07:33 PM
Last Post: deanhystad
  Sorting list - Homework assigment ranbarr 1 3,223 May-16-2021, 04:45 PM
Last Post: Yoriz
  Input validation for nested dict and sorting list of tuples ranbarr 3 5,637 May-14-2021, 07:14 AM
Last Post: perfringo
  Convert list of numbers to string of numbers kam_uk 5 5,041 Nov-21-2020, 03:10 PM
Last Post: deanhystad
  Return the sum of the first n numbers in the list. pav1983 3 10,566 Jun-24-2020, 03:37 AM
Last Post: deanhystad
  numbers in list - max value and average stewie 2 4,262 Apr-01-2020, 06:25 PM
Last Post: buran
  Question about Sorting a List with Negative and Positive Numbers Than999 2 16,721 Nov-14-2019, 02:44 AM
Last Post: jefsummers
  list of odd numbers cffiver2 2 7,191 Jul-12-2019, 09:46 AM
Last Post: perfringo

Forum Jump:

User Panel Messages

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