So when I run this code it works perfectly, but it overwrites the previous times in the stopwatch_times.txt
so, I searched high and low but couldn't
find out how to do it.
#!/usr/bin/python
import time
var_start = input("Press Enter To START The stopwatch")
t0 = time.time()
var_stop = input("Press Enter to STOP The stopwatch")
stopwatch_time = round(time.time() - t0,2)
stopwatch_time = str(stopwatch_time)
file_ = open("stopwatch_times.txt")
with open('stopwatch_times.txt', 'w') as file_:
file_.write(stopwatch_time)
print ("Stopwatch stopped - Seconds Elapsed : ",round(time.time() - t0,2))