Answers for "how to turn a string into an int python"

0

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))
Posted by: Guest on October-30-2021

Code answers related to "how to turn a string into an int python"

Python Answers by Framework

Browse Popular Code Answers by Language