Untitled

mail@pastecode.io avatar
unknown
plain_text
18 days ago
490 B
0
Indexable
Never
import itertools

# Define the ranges for each category
range1 = list(range(30, 41))
range2 = list(range(40, 51))
range3 = list(range(60, 70))

# Generate all combinations
combinations = list(itertools.product(range1, range1, range1, range2, range3))

# Print the total number of combinations
print("Total number of combinations:", len(combinations))

# Print the first few combinations
print("First few combinations:")
for i in range(min(len(combinations), 5)):
    print(combinations[i])
Leave a Comment