I was searching the web and never found anything, but I was probably just searching wrong. My goal of this fun meme project is to create a script that makes a file that contains numbers that count up to a certain specific amount on separate lines. So far I have:
import os
os.chdir("path")
myFile = open("numbers.txt", "wt")
x = 1
for i in range(10):
x += 1
print(x)
myFile.close()
myFile = open("numbers.txt", "r")
print(myFile.read())
My question is how to write the numbers on separate lines.
Sorry if there is some confusion I'm new to python and a young programmer and this is probably an easy fix. Thanks in advance :P