Dec-27-2019, 04:12 PM
from datetime import datetime import time import random odds = 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31, 33,35,37,39,41,43,45,47,49,51,53,55,57,59 right_this_minute = datetime.today().minute for i in range(5): if right_this_minute in odds: print("This is an odd minute") else: print("Not an odd minute") wait_time = random.randint(1,60) time.sleep(wait_time)This is a common schooling script I believe. But it has stopped working properly for reasons unknown. When the computer clock changes the minute, this code has stopped coming up with the correct print statement.