f = open("readme.txt", "w") for i in range(0,10): f.write(str(i) + ' ' + str(i**0.5) + '\n') f.close() print('done')