[Programmers] 문자열 다루기 기본
Python def solution(s): if (len(s) == 4 or len(s) == 6) and s.isdigit(): return True else: return False
Python def solution(s): if (len(s) == 4 or len(s) == 6) and s.isdigit(): return True else: return False
Python ~~~python def solution(n): temp = list(str(n)) answer = list(map(int, temp))
Python def solution(s): answer = '' temps = s.split(' ') for temp in temps: for i in range(len(temp)): if i % 2 == 0: ...
Python def solution(n): answer = 0 for i in range(1, n + 1): if n % i == 0: answer += i return answer
Python def solution(s): return int(s)