python number with commas to int code example
Example 1: how to separate a string or int with comma in python
string = input('Input')
>>> 1,2
print(cord.split(','))
>>>['1', '2']
Example 2: parse int python
value1 = "10"
value2 = 10.2
print(int(value1))
print(int(value2))
Example 3: python string with si suffix to number
from quantiphy import Quantity
v = Quantity('800m').real
# output = 0.8