#This will create a new file:
f = open("myfile.txt", "x")
#If the file already exist, an error will be raised.