print nameAndGrade("jeff,11-15-2013,97.5") print nameAndGrade("andy,11-17-2013,83.0") print nameAndGrade("jason,12-15-2013,76.7")
############################################# for i in range(n): for j in range(n): print i, j ############################################# while n > 1: print n n = n/2 ############################################# for i in range(n): for j in range(10): print i, j #############################################
x = 99 L = [-20, -12, -4, 1, 7, 44, 45, 46, 58, 67, 99, 145] low mid high 0 1 2 3 4 5 6 7 8 9 10 11 ----------------
ls = ["fish", "squirrel", "cat", "dog", "monkey", "pony"] s = "a,b,c,d,e"What are the value and type of the following expressions:
(1) ls[3] (2) ls[3] > "apple" (3) ls[3][1] (4) 'b' < 'f' (5) len(ls[5]) (6) range(len(ls)) (7) range(len(ls[0])) (8) s.split(",")
L = [9, 35, 18, 200, 0, 6, 43, 21]Which of the following represents L after 3 iterations of the outer loop in selectionSort()?
A. [0, 6, 9, 18, 21, 35, 43, 200] B. [0, 6, 9, 200, 18, 35, 43, 21] C. [0, 9, 35, 18, 200, 6, 43, 21] D. [0, 6, 9, 35, 200, 18, 43, 21]