6.00 Handout, Lecture 2 (Not intended to make sense outside of lecture) x = 3 #Create variable x and bind value 3 to it x = x*x #Bind x to value 9 print x x = 15 if (x/2)*2 == x: if (x/2)*2 == x: print 'Even' print 'Even' else: print 'Odd' else: print 'Odd' z = 'b' if 'x' < z: if 'x' < z: print 'Hello' print 'Hello' print 'Mom' print 'Mom' x = 15 y = 5 z = 11 print x, y, z #Is this right? if x < y: if x 0): y = y + x itersLeft = itersLeft - 1 #print 'y = ', y, ',itersLeft =', itersLeft print y x = 1515361 ans = 0 while ans*ans < x: ans = ans + 1 print ans Cite as: John Guttag, course materials for 6.00 Introduction to Computer Science and Programming, Fall 2007. MIT OpenCourseWare (http://ocw.mit.edu), Massachusetts Institute of Technology. Downloaded on [DD Month YYYY].