text input('number?'number float(textuser input if number lower number upper elselower upper number initialization tolerance - uncertainty upper lower while uncertainty tolerancemiddle (lower+upper)/ if middle** numberlower middle elseupper middle processing uncertainty upper lower print(lowerupper output sqrt py this gives us enough of script to see the overarching structure of scriptwe start with getting the data we need from the outside world ("input"then we set up any initial state we need based on that ("initialization"then we do our processing finally we reveal our results ("output"typically the processing phase takes longest to runbut note thatas hereit is often not the majority of the lines of code