Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- sting position
- index
- List 초기화
- Python
- Boto3
- Python 몫
- List to String
- Split
- Unknown command: cask
- list.sorted()
- Algorithm
- Modified Date
- 프로그래머스
- zip()
- sort()
- RecursionError
- list.pop(0)
- List
- COUNT
- string
- cask
- 알고리즘 풀이
- 피보나치 수
- python3
- 알고리즘
- list to set
- permutations
- set to list
- homebrew-core is a shallow clone.
- Python 나머지
Archives
- Today
- Total
목록정규식 (1)
데이터와 코드로 세상을 바라봅니다.

def solution(dartResult): answer = 0 index = 0 number = ['0','1','2','3','4','5','6','7','8','9','10'] bonus = ['S','D','T'] option = ['*','#'] number_d = '' bonus_d = '' option_d = '' score = 0 scores = [] for i in dartResult : if i in number : if bonus_d == '': number_d = number_d + i else: bonus_d = '' number_d = i elif i in bonus : if i == 'S': score = int(number_d) bonus_d = i scores.append..
Code/Python
2021. 1. 15. 15:37