initial commit
This commit is contained in:
commit
27fe77bbe1
134 changed files with 21939 additions and 0 deletions
14
initFiles.py
Normal file
14
initFiles.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import sys
|
||||
import os
|
||||
|
||||
if __name__ == '__main__':
|
||||
sys.path.append('..')
|
||||
year = input('Enter year: ')
|
||||
# create folders for the days and the py files
|
||||
for i in range(1, 26):
|
||||
if not os.path.exists(year + '/Day' + str(i)):
|
||||
os.makedirs(year + '/Day' + str(i))
|
||||
f = open(year + '/Day' + str(i) + '/Day' + str(i) + '.py', 'w')
|
||||
f.close()
|
||||
f = open(year + '/Day' + str(i) + '/input.txt', 'w')
|
||||
f.close()
|
||||
Loading…
Add table
Add a link
Reference in a new issue