일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- Python
- sting position
- List 초기화
- Split
- sort()
- Algorithm
- List to String
- python3
- permutations
- List
- homebrew-core is a shallow clone.
- Python 나머지
- set to list
- list.sorted()
- list.pop(0)
- cask
- Boto3
- 프로그래머스
- COUNT
- string
- zip()
- index
- RecursionError
- Unknown command: cask
- Modified Date
- 알고리즘
- 피보나치 수
- Python 몫
- 알고리즘 풀이
- list to set
- Today
- Total
목록전체 글 (35)
데이터와 코드로 세상을 바라봅니다.
[풀이 코드] def solution(participant, completion): answer = '' participant=sorted(participant) completion=sorted(completion) answer = participant[len(completion)] for i in range(0,len(completion)): if participant[i]!=completion[i]: answer=participant[i] break return answer def solution(participant, completion): answer = '' for i in range(0, len(completion)) : index_pos = participant.index(completion..
[코드] def solution(s): return s.lower().count('p')==s.lower().count('y') [참고자료] www.geeksforgeeks.org/isupper-islower-lower-upper-python-applications/ isupper(), islower(), lower(), upper() in Python and their applications - GeeksforGeeks A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/c..
def solution(answers): answer = [] answer1 = [1, 2, 3, 4, 5] answer2 = [2, 1, 2, 3, 2, 4, 2, 5, 2, 1, 2, 3, 2, 4, 2, 5] answer3 = [3, 3, 1, 1, 2, 2, 4, 4, 5, 5, 3, 3, 1, 1, 2, 2, 4, 4, 5, 5] data = {'1': 0, '2': 0, '3': 0} for i in range(0,len(answers)): if answer1[i%len(answer1)] == answers[i] : data['1'] += 1 if answer2[i%len(answer2)] == answers[i] : data['2'] += 1 if answer3[i%len(answer3)] ..