aboutsummaryrefslogtreecommitdiff
path: root/python/029-distinct_powers.py
blob: 8957e43f9b0bda2074dcb5320a8fadd23aa499a8 (plain)
1
2
3
4
5
6
7
8
nums_range = range(2, 101)

combinations = []
for a in nums_range:
    for b in nums_range:
        combinations.append(a ** b)

print(len(set(combinations)))