i want to writ file bomber with python and i want to when user press "/" the while break.
i wanted to when i run my python file my program create billions file for me. but i received this Error:OSError: [Errno 22] Invalid argument: 'testiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii.txt' this is my code:
import keyboard
fname = "test"
num = 0
while True:
fname = fname + "i"
num = num + 1
fhand = open(fname + ".txt" , "w")
if keyboard.is_pressed("/"):
print("/")
break