https://www.hackerrank.com/challenges/any-or-all/problem Any or All | HackerRank Return True, if any of the iterable is true or if all of it is true using the any() and all() expressions. www.hackerrank.com 이 문제를 기반으로 설명한다. 그냥 3줄로 만드는게 challenge라고 해서 줄인 것이다. 중요한 개념은 1. for 문의 응용 2. 슬라이싱방법 1. for 문의 응용 b = [1,2,3,4,5] a=[] a.append( i*2) for i in b 이렇게 한다면 a=[2,4,6,8,10] 이 되겠다. 2. 슬라이싱 방법 [a:b] 일..