Program Bubble sort | PYTHON CODE | TCS CODING QUESTIONS

Published: 06 December 2018
on channel: Extreme Programmer
634
30

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
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


On this page of the site you can watch the video online Program Bubble sort | PYTHON CODE | TCS CODING QUESTIONS with a duration of hours minute second in good quality, which was uploaded by the user Extreme Programmer 06 December 2018, share the link with friends and acquaintances, this video has already been watched 634 times on youtube and it was liked by 30 viewers. Enjoy your viewing!