Python中构造字典的一个问题

有三个list,
a=[t1,t2,t3,t4]
b=[y1,y2,y3,y4]
c=[77,89,56,90]

t1-y1-77为一一对应关系,现需要构造字典x,过滤掉c中低于80分的
预期得到结果:x={t2:y2,t4:y4}
要求一句完成

这样?有帮助麻烦点个采纳【本回答右上角】,谢谢~~
img

a=['t1','t2','t3','t4']
b=['y1','y2','y3','y4']
c=[77,89,56,90]
dict={}
for index in range(len(c)):
    if c[index]>=80:
        dict[a[index]]=b[index]
print(dict)

用dict函数构造一下,一行代码这样写:print({x:y for x,y in zip(a,b) if c[b.index(y)]>80})即可得到所需结果,演示代码如下:

a=['t1','t2','t3','t4']
b=['y1','y2','y3','y4']
c=[77,89,56,90]
d={x:y for x,y in zip(a,b) if c[b.index(y)]>80}
print(d)
PS F:\2021\qa\ot1> ./t10
{'t2': 'y2', 't4': 'y4'}