-1
import os
def main():
checkDir = str(input('Escoha o diretório do arquivo Python: '))
if os.path.exists(checkDir):
print('O diretório existe!')
print()
nameDir = str(input('Digite o nome do novo arquivo: '))
if __name__ == '__main__':
main()
Since I could create a "file" inside a python directory (the user speaks the name of the directory, he checks if the directory exists and if it exists creates the file with the name said by the user)?