def input(st,default=None) : if default is None : default_str = '' else : default_str = ' [default: ' + default + ' ] ' out = None while out is None : out = raw_input(white(bold(st))+default_str+white(bold(':'))+' \n') if len(out) == 0 : out = default return out
def wb(st) : sys.stdout.write(white(bold(st)))