String-to-Integer-for-Python
Example code:
import StrToInt as sti
sti1 = sti.StrToInt("1")
sti2 = sti.StrToInt("1132")
sti3 = sti.StrToInt("nine")
print(sti1)
print(sti2)
print(sti3)
Output:
1
1132
9
Library can be used with Python 2 and 3
Convert your string to integer
pip install StringToInteger==1.0.1
Example code:
import StrToInt as sti
sti1 = sti.StrToInt("1")
sti2 = sti.StrToInt("1132")
sti3 = sti.StrToInt("nine")
print(sti1)
print(sti2)
print(sti3)
Output:
1
1132
9
Library can be used with Python 2 and 3