import os

# We have file test.txt, hence we get True
print(os.path.exists('./test.txt'))
# We don't have file text.txt, hence we get False
print(os.path.exists('./text.txt'))
8be8e1d6103af5c56eee8599f3eb0c6cc9351d4b
<mask token>

<mask token>
print(os.path.exists('./test.txt'))
print(os.path.exists('./text.txt'))

import os
print(os.path.exists('./test.txt'))
print(os.path.exists('./text.txt'))

import os

# We have file test.txt, hence we get True
print(os.path.exists('./test.txt'))
# We don't have file text.txt, hence we get False
print(os.path.exists('./text.txt'))