python for활용
numbers = [1,2,3,4]; result = [] for num in numbers: result.append(num); print(result); numbers = [1,2,3,4]; result = [num * 3 for num in numbers]; print(result); numbers = [1,2,3,4]; result = [num * 3 for num in numbers if num % 2 == 0]; print(result); result = [x * y for x in range(2, 10) for y in range(1, 10)]; print(result);
2019. 8. 27.