So I have this code but I want to add text in a the files can you help me?
def createfile(num):
with open(f'{name}{num+1}.txt', 'w') as file:
pass
for num in range(number):
createfile(num)
print('Alright')
So I have this code but I want to add text in a the files can you help me?
def createfile(num):
with open(f'{name}{num+1}.txt', 'w') as file:
pass
for num in range(number):
createfile(num)
print('Alright')