fun_list = []
fun_list.append("")
fun_list.append("")
file1 = open('fun_test2.txt', 'w')
file1.writelines(fun_list)
file1.close()
# open file in read mode
al = "1234567890abcdefghijklmnopqrstuvwxyz"
print(al[:5])
try:
    f = open('fun_test.txt', 'r')
except:
    f = open("fun_test.txt", "w")

# display content of the file
a=0
for x in f.readlines():
    fun_list[a] = x
    print(x, end='')
    a+=1

# close the file
f.close()

x = fun_list[0]
x+=1









#fun_list = ["Geeks\n", "for\n", "Geeks\n"]

# writing to file
file1 = open('fun_test.txt', 'w')
file1.writelines(fun_list)
file1.close()