import logging
logging.basicConfig(filename='codelogging.log', level=logging.DEBUG,
format='%(asctime)s - %(message)s', datefmt='%d-%b-%y %H:%M:%S')
a_variable = 200
# for loop with logging
for i in range(100):
x = print(i)
logging.info('Iteriating')
logging.info('Script completed')