Class 30 — April 3

Moving on

Working Together – On a cautionary tale – New understandings


Look both ways


Zoom


Nuance downloads (PDF, slide show)


Homework downloads


Agenda


To do


Test 2


Module self-testing downloads


Tester statement if ( __name__ == '__main__' )

if ( __name__ == '__main__' ): # __name__ is a built in python variable.

  import abet # it is set to __main__ if you are running

  # that module as a program

  # it is set to the name of the module

  # if it is being imported

  abet.test_rotate()

  abet.test_rotate_k_times()

  abet.test_common()



Module of the day aid.py

Function rotate( x )


Function rotate_k_times( x, k )


Function common( x, y )



Slide show

 


 
  © 2020 Jim Cohoon   Resources from previous semesters are available.