Intermediate Python

Library Management

As part of a research team in a large library, you are tasked with cataloging numerous documents. To make your work more efficient, you have decided to create a Python program that will check if a document with a specific name exists in your current working directory.
The first line of the input contains the name of the file you want to check for its existence.
The program should print File exists if a file with that specific name exists in the current directory, or File doesn't exist if it does not.
File exists


Time limit: 0.2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue