how to check if object is of file type in python3

Solutions on MaxInterview for how to check if object is of file type in python3 by the best coders in the world