Wednesday 5 November 2014

Bubble Sort 
Java vs Python

Last semester, we are taken subject data structure with Dr. Mokhairi. We are already learn how to run bubble sort in java by using NetBeans. Since, we are learn new language Python. Let's try running bubble sort in Python Shell and making a comparison. 

Run bubble sort in Java by enter number 43,21,12,80,3,2,35:


Run bubble sort in Python by enter number 43,21,12,80,3,2,35:





Output in Java:




Output in Pyhton:



From the result above we can see clearly the differences between Java and Python. Python is more simple than Java.But it execute the same output.


No comments:

Post a Comment