Fix wrong naming for three digit problems
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
FROM = 88
|
||||
TILL = 90
|
||||
FROM = 206
|
||||
TILL = 206
|
||||
|
||||
template = """
|
||||
def euler_XXX():
|
||||
@@ -14,8 +14,12 @@ if __name__ == "__main__":
|
||||
|
||||
|
||||
for i in range(FROM, TILL + 1):
|
||||
e = "0" + str(i)
|
||||
if i < 100:
|
||||
e = "0" + str(i)
|
||||
else:
|
||||
e = str(i)
|
||||
filename = "e" + e + ".py"
|
||||
with open(filename, "w") as f:
|
||||
s = template.replace("XXX", e)
|
||||
f.write(s)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user