Question: Activity #1 Without using the IDE, trace and write the output of the following Python programs. PROGRAM 1 print( true) print( false) print( TRUE) print(

 Activity #1 Without using the IDE, trace and write the output

Activity #1 Without using the IDE, trace and write the output of the following Python programs. PROGRAM 1 print( true) print( false) print( TRUE) print( FALSE) print(NOT False) print(not False) print(not True) print('=====') print( 'FALSE AND FALSE=', FALSE AND FALSE) print( 'FALSE AND TRUE =', FALSE AND TRUE) print('TRUE AND FALSE=', TRUE AND FALSE) print( 'TRUE AND TRUE =', TRUE AND TRUE) print('=====') print( 'FALSE OR FALSE = ',FALSE or FALSE) print( 'FALSE OR TRUE =', FALSE OR TRUE) print( 'TRUE OR FALSE =', TRUE OR FALSE) print( 'TRUE OR TRUE =', TRUE OR TRUE) print('====='); PROGRAM 2 X=3.0 Y=4.0 Z=2.0 print( (z>X) or (Z>Y) ) print( (X==1.0) or (x==3.0) ) print( (X>Z) and (Y>Z) ) print( (ZY) )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!