parameters: (r0: Optional[Real], r1: Real)
docstring: prints the progress from r0 to r1
docstring_summary: prints the progress from r0 to r1
docstring_tokens: prints the progress from r0 to r1
function: def term_progress_from_to(r0: Optional[Real], r1: Real):
      """ prints the progress from r0 to r1 """
      i0 = 0 if (r0 is None) or (r0 > r1) else round(r0 * 100) + 1
      i1 = round(r1 * 100) + 1
      for i in range(i0, i1):
          print(str(i) if i % 5 == 0 else ".", end="", flush=True)
      if r1 >= 1:
          print("% done!")
function_tokens: def term_progress_from_to ( r0 : Optional [ Real ] , r1 : Real ) : i0 = 0 if ( r0 is None ) or ( r0 > r1 ) else round ( r0 * 100 ) + 1 i1 = round ( r1 * 100 ) + 1 for i in range ( i0 , i1 ) : print ( str ( i ) if i % 5 == 0 else "." , end = "" , flush = True ) if r1 >= 1 : print ( "% done!" )