Separating integer digits in three digit groups

Is it possible to print an integer in a way that thousands, millions, billions, etc. are separated by commas?
For example:
4,374,125,945

you should read “Format Specification Mini-Language” in python docs.

the basic code for this is “,d” (e.g. f"{1000:,d}")