[Programmers] ๋คํธ๊ฒ์
ยท
๐ฏ CodingTest/Programmers
โถ ๋ฌธ์ : ๋๋ณด๊ธฐ https://programmers.co.kr/learn/courses/30/lessons/17682 โถ ์ฝ๋ : def solution(dartResult): numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10'] divided = [] answer = [] temp = '' for i in range(len(dartResult)): if dartResult[i] in numbers and i == 0: temp += dartResult[i] elif dartResult[i] in numbers and dartResult[i-1] not in numbers: divided.append(temp) temp = dartRe..