![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbQUxz7%2Fbtrdrlybg0j%2FdSs6SMtWChMeFBvkrmed11%2Fimg.png)
Python
[코딩도장] Unit.15 | elif 사용하기 | 15.4 심사문제 코드
>Unit.15 elif 사용하기>> 1 콜라 >>> 4 제공하지 않는 메뉴 15.4 심사문제 : 교통카드 시스템 만들기 age = int(input()) balance = 9000 if 7
>Unit.15 elif 사용하기>> 1 콜라 >>> 4 제공하지 않는 메뉴 15.4 심사문제 : 교통카드 시스템 만들기 age = int(input()) balance = 9000 if 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..