thousands separator python
>>> num = 10000000
>>> print(f"{num:,}")
10,000,000
thousands separator python
>>> num = 10000000
>>> print(f"{num:,}")
10,000,000
how to split string with comma in python
# We can use the split() function and put a "," in the parameter
# It'll return a list with the string split up by commas.
txt = "hello, my name is Peter, I am 26 years old"
x = txt.split(",")
print(x)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us