nums = [1, 2, 3, 4, 5] filtered = [i for i in nums if i % 2 == 0] print(filtered) # [2, 4]
CC-BY-SA 3.0 · Powered by MediaWiki
개인정보처리방침 · ABOUT