Python flush method Example

Python flush method: The flush is a method of IOBase class in Python that is used to clear the internal