Better Print Statement
Better Print Statement
I’d like each print statement to look more like a log, so the timestamp and user would be a great addition to each new line.
Timestamp
Imports
from time import sleep, asctime, localtime
Print update
print(f"{asctime(localtime())}: {''.join(log)}")
Validation
User
Imports
from os import getlogin
Print update
print(f"{getlogin()} -- {asctime(localtime())}: {''.join(log)}")
Validation
Even better.