isatty( )
Return True if the file is connected to a tty(-like) device, else False. Note: If a file-like object is not associated with a real file, this method should not be implemented.
True
False