Solution Review: String to Integer
This lesson contains the solution review to convert a string into an integer in Python.
We'll cover the following
In this lesson, we will review the solution to the challenge in the last lesson. The problem is as follows:
Given some numeric string as input, convert the string to an integer.
You already know that we are not allowed to use the built-in int()
function. Now to convert a string into an integer, we can make use of the following arithmetic:
Get hands-on with 1400+ tech skills courses.