python font family list

from tkinter import Tk, font
root = Tk()
font.families()

Here is what the above code is Doing:
1. It’s creating a Tk object.
2. It’s calling the font.families() method to get a list of all the fonts installed on your computer.
3. It’s printing the list of fonts to the console.