Answers for "why can i read the files in python"

0

how to read files in python

#Read files with loop
#Replace (File path) with your text file's path
file = open("(File path)", "r")

text = ""

for line in file:
  text = "%sn%s"%(text, line)
  
print(text)
Posted by: Guest on January-30-2021

Code answers related to "why can i read the files in python"

Python Answers by Framework

Browse Popular Code Answers by Language