파이썬 함수 모음
삼항연산 T if조건 else False[중첩가능] (print(a) if a>b else print(b) ) 리스트내포 [list comprehension] a = [i for i in range(10) if i % 2 == 0 ] youtube.com/watch?v=rrBQs_M8J_k&list=PLNgPShXbeBwErzwo1z_zYobnukjrlVUmP&index=16 논리연산자 and 둘다 참 이여야 조건 성립 or 둘중 하나라도 참이면 조건성립 not 둘다 아니여야 조건 성립 fomating %s -> 문자열 %d -> 정수 %f -> 실수 %% -> 문자 % 표현 %() map() - ()안에 모든걸 연결 len() - 글 수 확인 where.append(what) - 리스트에 () 추가 (..
2021.07.01