Помощь с задачей | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Помощь с задачей

Мой код: sem1_score = int(input()) sem2_score = int(input()) sem_score = (sem1_score + sem2_score)/2 if sem_score >= 90 or sem_score <= 100 : print("50") else: if sem_score >= 80 or sem_score <= 89 : print("30") else: if sem_score >= 70 or sem_score <= 79 : print("10") else: if sem_score >= 0 or sem_score <= 69 : print("0") Должен выводить 10 при вводе 67 и 84, а выводит 50. ПОЧЕМУ???

14th Feb 2021, 4:02 PM
Santer 78
Santer 78 - avatar
1 Answer
+ 5
Используйте "and" вместо "or". Use 'and' instead of 'or'
14th Feb 2021, 4:05 PM
noteve
noteve - avatar