You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2.5 KiB

In [88]:
from error_messages import break_messages
import random, datetime, time
from datetime import date
import pytz
In [89]:
def random_line(txt_list):
    message= choice(txt_list)
    print (message)
In [90]:
random_line(break_messages)
sorry I fell asleep come back in 10 min
In [ ]:
 
In [91]:
today = date.today()
altro = ('2021-12-15')
In [92]:
if today != altro:
    print(altro)
2021-12-15
In [93]:
tz = pytz.timezone('Europe/Berlin')
moment = datetime.datetime.now(tz)
timestamp = moment.__str__()
In [ ]: