728x90
def solution(str1, str2):
return 1 if str2 in str1 else 2
728x90
'CodingTest > [프로그래머스 LV.0]' 카테고리의 다른 글
프로그래머스 LV.0 - 숨어있는 숫자의 덧셈 (1)[Python] (0) | 2023.01.22 |
---|---|
프로그래머스 LV.0 - 제곱수 판별하기[Python] (0) | 2023.01.22 |
프로그래머스 LV.0 - 자릿수 더하기[Python] (0) | 2023.01.21 |
프로그래머스 LV.0 - 순서쌍의 개수[Python] (1) | 2023.01.21 |
프로그래머스 LV.0 - 배열의 유사도[Python] (0) | 2023.01.21 |