![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FdEYxsQ%2Fbtrdr26d5AA%2FEeleDXPKSTzlcbR5lIkQ4k%2Fimg.png)
Python
[코딩도장] Unit.14 | else 사용하여 두 방향으로 분기하기 | 14.7 심사문제 코드
>Unit.14 else 사용하여 두 방향으로 분기하기 0 : print('+') else : print('-') >>> + else에서 변수에 값을 할당 할 땐 조건부 표현식을 사용할 수 있다. >>> x = 5 >>> y = x if x == 10 else 0 >>> y 0 14.7 심사문제 : 합격 여부 판단하기 korean, english, math, science=map(int,input().split()) x=(korean+english+math+science)/4 if korean100 or english100 or math100 or science100: print('잘못된 점수') else: if x>=80: print('합격') else: print('불합격') https://githu..