Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import logging
- file_log = logging.FileHandler('thecode.log')
- console_out = logging.StreamHandler()
- logging.basicConfig(handlers=(file_log, console_out), level=logging.DEBUG)
- logging.info('declarete veariables')
- jun = 1
- day = 30
- month = range(1, day)
- logging.warning('enter in to the loop')
- for current_day in month:
- jun = jun * 2
- logging.debug('amount juns:' +str(jun))
- #print(jun)
- new_jun = 2
- new_day = 0
- logging.warning('enter in to the second loop')
- while new_jun <= jun:
- new_jun = new_jun * 2
- logging.debug('amount new_juns:' +str(jun))
- new_day = new_day + 1
- print(new_day)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement