print ord("a") 97 print ord("b") 98 print ord("Z") 90 print ord("$") 36 x = range(5) print x [0, 1, 2, 3, 4] x = range(2,6) print x [2, 3, 4, 5] x = range(2,20,4) print x [2, 6, 10, 14, 18] for x in range(4): print "Go DUke" Go DUke Go DUke Go DUke Go DUke a = "what a nice day today".split() print a ['what', 'a', 'nice', 'day', 'today'] for word in a: print word what a nice day today for word in range(len(a)): print word 0 1 2 3 4 x = range(len(a)) print x [0, 1, 2, 3, 4] for index in range(len(a)): print index, a[index] 0 what 1 a 2 nice 3 day 4 today g = list("hello there") print g ['h', 'e', 'l', 'l', 'o', ' ', 't', 'h', 'e', 'r', 'e'] h = " ".join(g) print h h e l l o t h e r e h = "".join(g) print h hello there