<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def printflush(s: str, end: str = '\n') -> None: """ Prints a given string to the standard output and immediately flushes. """

    print(s, end=end)
    sys.stdout.flush()