Completed

This commit is contained in:
Mosiur Rahman
2024-11-17 15:10:16 +06:00
parent 7ea855c769
commit 183c19705c
4 changed files with 114 additions and 0 deletions

7
test.py Normal file
View File

@@ -0,0 +1,7 @@
# Open a file in write mode
with open("example.txt", "w") as file:
# Write data to the file
file.write("Hello, world!\n")
file.write("This is a new line.\n")
print("File written successfully!")