1# my problme was that, i didnt know that the image format must be .ico
2# you can convert your images in https://convertico.com/ and then:
3
4from tkinter import *
5
6root = Tk()
7root.title('this is program title')
8# icon
9root.iconbitmap('image_name.ico')
10
11root.mainloop()