- 1

How to do this in f-strings ?

print("123456789 becomes {:,}".format(123456789)) #output : 123,456,789

15th Jul 2021, 8:34 PM
Ratnapal Shende
Ratnapal Shende - avatar
1 ответ
0
print(f"{123456789:,}")
7th Dec 2021, 12:56 AM
Benjamin Rogers
Benjamin Rogers - avatar