total_words = "{:,}".format('total_words') ValueError: Cannot specify ',' with 's'. code example
Example: ValueError: Cannot specify ',' with 's'.
pop = "4534305483"
print(format(int(pop),","))
#Make sure to convert to an integer
#4,534,305,483
pop = "4534305483"
print(format(int(pop),","))
#Make sure to convert to an integer
#4,534,305,483