Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to turn a string into an int python

#The string
number_string = input('Type a number')
result = int(number_string) + 2
print(int(result))
Source by stackabuse.com #
 
PREVIOUS NEXT
Tagged: #turn #string #int #python
ADD COMMENT
Topic
Name
4+9 =