Header image for Simplify code

Simplify code

Prompt

Simplify the following Python code as much as possible: ```python import json from collections import* d=defaultdict(lambda:[0]*3) for r in json.load(open("requests.json")): a=d[r["region"]] a[0]+=1 if r["status_code"]//100==2: a[1]+=1 a[2]+=r["response_time_ms"] print(sum(b and round(c/b)<100 and b/a>=.85 for a,b,c in d.values())) ````

Drag to resize
Drag to resize
Drag to resize
Drag to resize