# Tuesday, Oct 27, 2015 def binary( theValue ): # The function header line here has focus on WHAT b = "" # All the rest of the function suite (function body) while theValue > 0: # are separate and deal with b = str( theValue % 2 ) + b # the HOW to get from theValue theValue = theValue // 2 # numeric input to the binary # string representation output. return b num = 192 print( binary(num), num ) # Note that using the function we focus on WHAT # it does. It takes as INPUT a numeric value # and it returns a STRING of the binary digits # as its OUTPUT or result. num = 224 print( binary(num), num )