Write a Python Program to Create a Text File

Опубликовано: 09 Август 2024
на канале: Code With TJ
16
0

Hello Programmers, Welcome to my channel.

In this video you will learn about how to Write a Python Program to Create a Text File

Python Scripts
========================
https://codewithtj.blogspot.com/2024/...

Python Functions Solved
========================
https://codewithtj.blogspot.com/2023/...

Python Programs Solved
========================
https://codewithtj.blogspot.com/2023/...

Python 3 Tutorial - Code
=============================
"""
Write a Python Program to Create a Text File
"""

filename = input("Enter Filename : ")
fd = open(filename, "w")
fd.write("The file has been created")
fd.close()




Keywords
=============================
#python #python3 #python_assignment #pythonprogramming #pythontutorial #pythonprojects #pythoncourse #pythonbaba #pythonforbeginners #pythonautomation #pythonbasic #pythonbeginners