kor = int("Enter your Korean score")
eng = int (input ("Please enter your English score"))
math = int (input ("Enter your math score")
# # if kor+eng+math/3 < 70:
total = kor+eng+math
s = [{kor: "Korean"}, {eng: "English"}, {math: "Mathematics"}]
if total>=180:
if kor<40 or math <40 or eng<40:
# # print(s[1])
# # print(s)
for i in enumerate(s):
print(total,"score,s[i]"overlapping")
else:
print (total "Pass")
else:
print (total "not accepted")
I want to check the score data and make it excessive if it is less than 40 points for each score, but I keep getting errors. What should I do?
python
kor = int (("Enter your Korean score")
eng = int (input ("Please enter your English score"))
math = int (input ("Enter your math score")
# # if kor+eng+math/3 < 70:
total = kor+eng+math
s = {kor: "Korean", eng: "English", math: "Math"}
if total>=180:
if not (kor > 40 and eng > 40 and math >40) :
for score, sub in s.items():
if score < 40:
print (total, 'score', sub, 'overuse')
else:
print (total "Pass")
else:
print (total "not accepted")
© 2024 OneMinuteCode. All rights reserved.