L2 Problem 11 _ Lecture 2 - Core Elements of Programs - Time 47_06 _ 6.00.pdf - L2 Problem 11 | Lecture 2 Core Elements of Programs Time 47:06 | 6.00.1x

L2 Problem 11 _ Lecture 2 - Core Elements of Programs - Time 47_06 _ 6.00.pdf

This preview shows page 1 - 4 out of 4 pages.

varA varB "string involved" varA varB "bigger" varA varB "equal" varA varB "smaller" varA varB raw_input varA varB varA varB L2 Problem 11 | Lecture 2 - Core Elements of Programs - Time 47:06 | 6.00.1x Courseware | edX ... 1 of 4 9/23/2017, 10:18 PM
varA varB type CORRECT See full output See full output if type(varA) == str or type(varB) == str: print 'string involved' elif varA > varB: print 'bigger' elif varA == varB: print 'equal' else: # If none of the above conditions are true, # it must be the case that varA < varB print 'smaller' 1 2 3 4 5 6 7 8 9 10 L2 Problem 11 | Lecture 2 - Core Elements of Programs - Time 47:06 | 6.00.1x Courseware | edX

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture