일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- collections.deque
- Numpy
- centuryFromYear
- 파이썬머신러닝완벽가이드
- recursion
- codesingal
- Daily Commit
- codesignal
- 백준
- cpp
- 2750
- adjacentElementsProduct
- markdown
- baekjun
- flask
- 파이썬 포렌식
- 2015 봄학기 알고리즘
- data_structure
- Counting cells in a blob
- Sequential Search
- almostIncreasingSequence
- til
- matrixElementsSum
- 수 정렬하기
- shapeArea
- Python
- All Longest Strings
- C++
- 피보나치 수
- 10953
Archives
- Today
- Total
Introfor
Who likes it
1 2 3 4 5 6 7 8 9 10 11 12 def likes(names): if len(names) == 0: return "no one likes this" elif len(names) == 1: return f'{names[0]} likes this' elif len(names) == 2: return f'{names[0]} and {names[1]} like this' elif len(names) == 3: return f'{names[0]}, {names[1]} and {names[2]} like this' else: num = len(names) - 2 return f'{names[0]}, {names[1]} and {num} others like this' cs names의 크기에 따라서..
Programming_prob/Codewares
2020. 9. 20. 15:26