This is day 8 on my journey to teach myself Python. I have decided to change direction and start by following some on-line tutorials as doing the cut and paste method has shown me I need to learn how to use some of the data structures like dictionaries etc.
I have started the Microsoft video series:
Programming with Python | Python for Beginners
https://www.youtube.com/playlist?list=PLlrxD0HtieHhS8VzuMCfQD4uJ9yne1mE6
Here is some code after several lessons:
from datetime import datetime, timedelta
import time
import logging
log = logging.getLogger("pylearn-day9")
logging.basicConfig(level=logging.INFO,
format='%(asctime)s %(levelname)s %(message)s',
filename='pylearn.log',
filemode='w')
log.info("Starting program")
utc_date = datetime.utcnow()
print('pylearn-day9')
print('UTC ' + str(utc_date))