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
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Nesta página do site você pode assistir ao vídeo on-line Program Bubble sort | PYTHON CODE | TCS CODING QUESTIONS duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Extreme Programmer 06 Dezembro 2018, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 634 vezes e gostou 30 espectadores. Boa visualização!