Answer :
The Python expression would be -
outfile.write("{},{:.4f}\n".format(year, temp))
What is Python?
Python is a popular, high-level programming language known for its simplicity, readability, and flexibility.
It was first released in 1991 and has since become one of the most widely used programming languages in the world. Python is used for a wide variety of purposes, including web development, data science, scientific computing, and artificial intelligence. Many of the world's largest technology companies use Python in their software development processes.
To Know More About artificial intelligence, Check Out
https://brainly.com/question/22678576
#SPJ4