format thosadns python code example
Example 1: thousands separator python
>>> num = 10000000
>>> print(f"{num:,}")
10,000,000
Example 2: How to use .format in python
#The {} are replaced by the vairables after .format
new_string = "{} is string 1 and {} is string 2".format("fish", "pigs")