Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Print today and tomorrow
days = ['Monday','Tuesday','Wednesday','Thursday','Friday']
today = datetime.datetime.today().strftime('%A')
tomorrow = (datetime.date.today() + datetime.timedelta(days=1)).strftime('%A')
day = tomorrow
day_counter=0
for cell_menu_item in row('div',{'class':'cell_menu_item'}):
if day not in days[day_counter]:
day_counter += 1
continue
print day
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment