Lecture

7: Lists and Mutability, Dictionaries, Introduction to Efficiency import math #Get baseinputOK = Falsewhile not inputOK:    base = input(‘Enter base: ‘)    if type(base) == type(1.0) : inputOK = True    else: print(‘Error. Base must be floating point number.’) #Get HeightinputOK = Falsewhile not inputOK:    height = input(‘Enter height: ‘)    if type(height) […]

Continue reading about Lec 7 | MIT 6.00 Introduction to Computer Science and Programming, Fall 2008