Question Answered step-by-step Opens a file called “squares.txt” for writing. Writessquaresof… Opens a file called “squares.txt” for writing.Writes squares of integer numbers from 1 to 1000 to the file, one number per row. In other words, the numbers 1, 4, 9, 16, …, 1000000 are written to the file, one number per row.Closes the file. Computer Science Engineering & Technology Python Programming ITECH 1400 Share QuestionEmailCopy link Comments (0)