import time
async def work(p):
time.sleep(2)
def endpoint():
p = ""
await work(p)
endpoint()
a = {"A_2":{2:""}, "B_1":{1:"No"}, "A_3":{3:"Yes"}}
a = {key: a.get(key) for key in sorted(a, key=lambda x: [(int(i[1]), i[0]) for i in [x.split('_')]][0])}
for k, v in a.items():
l = []
l.append(str(v.values()))
if len(''.join(l)[14:len(str(v.values())) - 3]) > 0:
print(f"{k} - {''.join(l)[14:len(str(v.values())) - 3]}")
else:
print(f"{k} - Ничего не записанно")