Hi Guys,
I have created this program for Bubble sort in Python. I made use of 'Range' keyword for listing the numbers in sequence and 'swap' number code to swap if predecessor is greater than successor.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
BUBBLE sort:
Bubble Sort is the simplest sorting algorithm that works by repeatedly swapping the adjacent elements if they are in wrong order.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Range :
range(start_point,end_point,step)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Swap function:
Temp = a
a = b
b = Temp
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hope you liked my this video
Thank you!!!
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
My Previous video link
(TO CHECK THE STRING IS ANAGRAM OR NOT): • Program to check if two strings are Anagra...
(HALF ASCENDING AND HALF DESCENDING): • How to arrange array in half Ascending and...
(PROGRAM TO CALCULATE ANGLE BETWEEN CLOCK HAND): • Program to find angle between hands of clo...
(PRINT | H$w a&e YOU): • Replacing letters | Important Java program...
(Fortune Teller Program): • How to make a basic Python fortune Teller ...
------------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------
#pythonprogramming #pythonbasic #i_extreme_coder
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Sur cette page du site, vous pouvez voir la vidéo en ligne Program Bubble sort | PYTHON CODE | TCS CODING QUESTIONS durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Extreme Programmer 06 décembre 2018, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 634 fois et il a aimé 30 téléspectateurs. Bon visionnage!