I want to create a directory and then create some files in that directory.
I have already created a directory like so:
if not os.path.exists("output"):
os.mkdir("output")
How can I now access this directory and create some files using something like this open("foo.txt", "w")
?