Python isatty method Example

Python isatty method: The isatty is a method of IOBase class in Python. This method returns True if the file