I am using open function to write a text file
I am using IDLE for code execution
File = open('abcd.txt','w')
for i in range(10):
File.write("this is line %d\n" % (i+1))
File.close()
my Expected result is
this is line 1
this is line 2
this is line 3
'''''
'''''
this is line 10