Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python Parse string into integer

balance_str = "1500"
balance_int = int(balance_str)

# print the type
print(type(balance_int))

# print the value
print(balance_int)
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #Parse #string #integer
ADD COMMENT
Topic
Name
9+1 =