def design(): """The :program:`binvol` program.""" print( binhop.intro(2) ) print() print( " Press number in ( ) to indicate shape of bin:" ) print( "(1) Round" ) print( "(2) Rectangular" ) while True: b= input( "CHOICE? " ) if b == '1': cyl_design() break elif b == '2': rect_design() break
print( template.format(**args) ) def design(): """The :program:`binvol` program.""" print( binhop.intro(2) ) print() print( " Press number in ( ) to indicate shape of bin:" ) print( "(1) Round" ) print( "(2) Rectangular" ) while True: b= input( "CHOICE? " ) if b == '1': cyl_design() break elif b == '2': rect_design() break print( binhop.intro() ) z= '' while z != '0': print(" To analyze an existing bin......press 1") print(" To design a new bin.............press 2") print(" To EXIT.........................press 0") z= input( "CHOICE? " ) if z == '1': analyze() elif z == '2': design()