Module 6 4930
Daniel Tafmizi Dr. Friedman Lis 4930 June 24, 2024 Module 6 GitHub link: DanielDataGit/lis4930 (github.com) Comments: I did not run into much trouble completing the assignment questions. I did not rely on google as much as some of the previous assignments. The datetime module was easy to use. Questions: I was confused with what the first question asked. Did I answer it correctly? Can you use logical operators with datetime to subset data from a list? from datetime import datetime from datetime import timedelta import sys for line in sys.stdin: data = line.strip().split( " \t " ) if len (data) == 6 : date, time, store, item, cost, payment = data # create local datetime object date_time = datetime.now() print ( "{0} \t {1} \t {2}" .format(item, cost, date_time)) # Add 1 day time1 = datetime.now() + timedelta( days = 1 ) print (time1) # Subtract 60 seconds from prior time2 = time1 - timedelta( seconds = 60 ) print (time2) # Add...