숫자 찾기
https://school.programmers.co.kr/learn/courses/30/lessons/120904
def solution(num, k):
num = str(num)
try:
answer = num.index(str(k))
return answer+1
except:
return -1
#오류가 나면 -1 출력
피자 나눠 먹기(2)
https://school.programmers.co.kr/learn/courses/30/lessons/120815
def solution(n):
for answer in range(1, 1000):
if (answer * 6) % n == 0:
return answer
최댓값 만들기(2)
https://school.programmers.co.kr/learn/courses/30/lessons/120862
def solution(numbers):
numbers = sorted(numbers)
a = numbers[0]*numbers[1]
b = numbers[-1] * numbers[-2]
if a > b:
return a
else:
return b