from itertools import combinations
for comb in combinations(range(1, 70), 5):
for PB in combinations(range(1, 27), 1):
if PB[0] in range(1, 27):
a = open(f"PowerBall{PB[0]}.txt", "a")
a.write(str(comb + PB))
a.write("\n")
print("\r", f"on: {comb + PB}", end="")
Trying to find all combination for those set of ranges.