Hey! How is everyone doing? I'm doing great! I'm almost done the course!
So, I use PyScripter 2.7 as my IDE while I'm working on the exercises (very helpful!) and I'm confused how to file Input/Output with it.
Anyone have helpful tips?
I ran the code and nothing happens. Is there something I have to set up or configure for output to txt file to work?
my_list = [i**2 for i in range(1,11)] # Generates a list of squares of the numbers 1 - 10 f = open("output.txt", "w") for item in my_list: f.write(str(item) + "\n") f.close()