In Python how could I accomplish printing out the time in realtime in a Terminal?
while(True):
print("[ " + "Time: " + datetime.date.today().strftime("%Y-%m-%d") + " ]")
The code above will just print out the line infinite amount of times. How can I do a "static" line of text and refresh the time every second without doing print statements on every line? Hope this wasn't too confusing :)
Wasn't sure what to search for, it didn't give me the result I was looking for.