Не понимаю, как присвоить имя фотке
c4et=0 while c4et != 100: c4et+=1 name = "bomb_"+str(c4et) directory = "photo//"+str(c4et)+".gif" print (name, directory) name = PhotoImage(file=directory) print(bomb_1)
bomb_1 photo//1.gif Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\Fedy\AppData\Local\Programs\Python\Python36\lib\tkinter\__init__.py", line 1699, in __call__ return self.func(*args) File "F:\Python\Бомба.PY", line 169, in choose print(bomb_1) NameError: name 'bomb_1' is not defined