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
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
En esta página del sitio puede ver el video en línea Program Bubble sort | PYTHON CODE | TCS CODING QUESTIONS de Duración hora minuto segunda en buena calidad , que subió el usuario Extreme Programmer 06 diciembre 2018, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 634 veces y le gustó 30 a los espectadores. Disfruta viendo!