how to fixvalue error in python
filename = "language.txt"
#open file for writing
fileHandler = open (filename, "w")
#Add some text
fileHandler.write("Bash\n")
fileHandler.write("Python\n")
fileHandler.write("PHP\n")
#close the file
fileHandler.close()
#open file the file and read the data
filehandler = open(filename, "r")
#Read the file by line
for line in fileHandler:
print(line)
#close the file
fileHandler.close()