判断其是否为优秀?(语言-python)

问题遇到的现象和发生背景

输入一个学生的高数、专业课、外语、哲学、体育五门课的考试成绩,判断其是否为优秀。优秀的条件为:该五门课成绩总分超过450分或每门课程在88以上或每门主课(前三门)的成绩都在95分以上其他课程在80分以上

用代码块功能插入代码,请勿粘贴截图

代码如下如有帮助,点一下采纳谢谢:

输入一个学生的高数、专业课、外语、哲学、体育五门课的考试成绩,判断其是否为优秀。优秀的条件为:该五门课成绩总分超过450分或每门课程在88以上或每门主课(前三门)的成绩都在95分以上其他课程在80分以上

gs = int(input('高数:'))
zy = int(input('专业课:'))
wy = int(input('外语:'))
zx = int(input('哲学:'))
ty = int(input('体育:'))
total = gs + zy + wy + zx + ty 
if total > 450 or (gs>88 and zy >88 and wy>88 and zx>88 and ty>88) or (gs>95 and zy >95 and wy>95 and zx>80 and ty>80):
    print('优秀')
else:
    print('非优秀')