Answer the question
In order to leave comments, you need to log in
I want to ask, did I write Json reading and output well?
with open('datafile.json', 'r', encoding='utf-8') as f:
file_content = f.read()
data1 = json.loads(file_content)
d = 'Товтин Ярослав'
for i in data1:
if d.upper() in i['involved'].upper():
print(i['date'], i['judge'], i['forma'], i['number'], i['involved'], i['description'], sep='\n')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question