Is it possible to create a text file in python?
Is it possible to create a text file in python? Correct Answer Yes
Yes we can create a file in python. Creation of file is as shown below. file = open(“newfile.txt”, “w”) file.write(“hello world in the new file\n”) file.write(“and another line\n”) file.close().
মোঃ আরিফুল ইসলাম
Feb 20, 2025