Change keyword colliding variable
This commit is contained in:
parent
9dd22abfe1
commit
737a382adf
@ -23,8 +23,8 @@ def compute():
|
||||
ans = 0
|
||||
# no need to go higher than 10, because 10**2 = 100
|
||||
for number in range(1, 10):
|
||||
for pow in range(1, 30):
|
||||
if len(str(number**pow)) == pow:
|
||||
for exp in range(1, 30):
|
||||
if len(str(number**exp)) == exp:
|
||||
ans += 1
|
||||
|
||||
return ans
|
||||
@ -32,4 +32,4 @@ def compute():
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
print(f"Result for Problem 63: {compute()}")
|
||||
print(f"Result for Problem {int(63):003d}: {compute()}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user