script to calculate square roots by bisection (cbob dowling licensed under gpl text input('number?'number float(textneed real number test number for validityset initial bounds if ok if number print('number must be non-negative!'exit(elif number lower number upper elselower upper number this is what commented script looks like