for datetime import datetime
def chek(*stream):
chek_ = []
for date in stream:
try:
date_datetime = datetim.strptime(data,''%Y-%m-%d')
chek_.append=('date_datetime')
print(chek_, True)
except:
chek_.append=(date_datetime)
print(chek_, False)
File "<ipython-input-16-a3066517c87d>", line 1
for datetime import datetime
^
SyntaxError: invalid syntax
def chek(*stream):
chek_ = []
for date in stream:
try:
date_datetime = datetim.strptime(data,''%Y-%m-%d')
chek_.append=('date_datetime')
print(chek_, True)
except:
chek_.append=(date_datetime)
print(chek_, False)
File "<ipython-input-16-a3066517c87d>", line 1
for datetime import datetime
^
SyntaxError: invalid syntax