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
  Random Generator: From Word to Numbers, from Numbers to n possibles Words Yamiyozx 2 1,419 Jan-02-2023, 05:08 PM
Last Post: deanhystad
  sorting a list using unicodes acending order, no loops, no sort(), using recursion lrn2codee 14 6,404 Jun-23-2021, 07:33 PM
Last Post: deanhystad
  Sorting list - Homework assigment ranbarr 1 2,230 May-16-2021, 04:45 PM
Last Post: Yoriz
  Input validation for nested dict and sorting list of tuples ranbarr 3 3,899 May-14-2021, 07:14 AM
Last Post: perfringo
  Convert list of numbers to string of numbers kam_uk 5 3,004 Nov-21-2020, 03:10 PM
Last Post: deanhystad
  Return the sum of the first n numbers in the list. pav1983 3 4,097 Jun-24-2020, 03:37 AM
Last Post: deanhystad
  numbers in list - max value and average stewie 2 2,827 Apr-01-2020, 06:25 PM
Last Post: buran
  Question about Sorting a List with Negative and Positive Numbers Than999 2 12,720 Nov-14-2019, 02:44 AM
Last Post: jefsummers
  list of odd numbers cffiver2 2 5,194 Jul-12-2019, 09:46 AM
Last Post: perfringo
  sorting a deck of cards (objects in a list) itmustbebunnies 1 7,199 Dec-05-2018, 02:44 AM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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