Everything posted by 3749771
-
def get_combinations(list1, list2): combinations = [] for item1 in list1: index = 0 while index < len(list2): combinations.append((item1, list2[index])) index += 1 return combinations # 두 개의 리스트로 조합 계산 list1 = [1, 2, 3] list2 = ['a', 'b', 'c'] result = get_combinations(list1, list2) # 결과 출력 for combination in result: print(combination)
-
- Show previous comments 1 more
-
Awesome Photo
-
-
1
-
- Report
-
-
-
1
-
- Report
-
Great Photo
-
-
1
-
- Report