This file will write a simple counter to the file counter.txt. Please note EVERY time Python writes to a file it wipes ALL the previous contents!
Exercise 1: Bug Fixing
Notice that this code wipes your previous file even if it writes nothing. Be VERY careful when writing to files.
Read the error carefully. What is a limitation of writing to a text file? We want a countdown from 10 to 0, can you fix the code?
GIS SUBMIT>>
Read the error carefully. What is a limitation of writing to a text file? We want a countdown from 10 to 0, can you fix the code?
GIS SUBMIT>>