import os

try:
    os.rename('1', '2')
except FileExistsError as e:
    print("File exist")
5200b3f30ea29c86d9bb19399c298d019a2e91c0
<mask token>

<mask token>
try:
    os.rename('1', '2')
except FileExistsError as e:
    print('File exist')

import os
try:
    os.rename('1', '2')
except FileExistsError as e:
    print('File exist')

import os

try:
    os.rename('1', '2')
except FileExistsError as e:
    print("File exist")