9. Makes JS debugging feel like FORTRAN Customary Hello World example: print ”Hello World”
10. Why Python? (cont.) Javascript Python function bubbleSort(items) { var x, y, holder; // The Bubble Sort method for (x = 0 ; x < items.length; x++) { for (y = 0 ; y < (items.length- 1 ); y++) { if (items[y] > items [ y + 1 ] ) { holder = items [ y + 1 ] ; items [ y + 1 ] = items [ y ] ; items [ y ] = holder; } } } def bubbleSort(items): # The Bubble Sort method for x in range ( len ( items )): for y in range ( len ( items )- 1 ): if items [ y ] > items [ y + 1 ]: items [ y ] , items [ y + 1 ] =items [ y + 1 ] , items [ y ] Sorting a list: Javascript Python items.sort() items.sort()