9951 explained code solutions for 126 technologies

pythonHow to create file

with open('file.txt', 'w') as f:
  f.write('text')ctrl + c

name of the file to create


used so that we can write something into new file


writes specified text into file


text to write into file

with open

opens specified file for manipulations