New: Practice Python, JavaScript & SQL with AI feedback — Try ActiveSkill free →

Day 6, Bug Fixing Exercise 1

Explanation

 Line 3 and 4 were

file.write("100.12")

file.write("111.23")

but they should have been

file.write("100.12\n")

file.write("111.23\n")

The \n are added to create breaks after each line.

Recommended Course

Python Mega Course: Learn Python in 60 Days, Build 20 Apps
Learn Python on Udemy completely in 60 days or less by building 20 real-world applications from web development to data science.