How to turn an string into an integer?
<p>I am doing a little code for my programming class and we need to make a program that calculates the cost of building a desk. I need help changing my DrawerAmount to an integer, not a string!</p>

<pre><code>def Drawers():
print("How many drawers are there?")
DrawerAmount = input(int)
print("Okay, I accept that the total amount of drawers is " + DrawerAmount + ".")
return DrawerAmount

def Desk():
    print("What type of wood is your desk?")
    DeskType = input()
    print("Alright, your desk is made of " + DeskType + ".")
    return DeskType

def Calculation(DrawerAmount, DeskType):
    if "m" in DeskType:
        FinalPrice = DrawerAmount * 30 + 180
    elif "o" in DeskType:
        FinalPrice = DrawerAmount * 30 + 140
    elif "p" in DeskType:
        FinalPrice = DrawerAmount * 30 + 100

def Total():
    print("The final price is " + FinalPrice )

DrawerAmount = Drawers()
DeskType = Desk()
Calculation(DrawerAmount, DeskType)
FinalPrice = Total()
</code></pre>

<blockquote>
  <p>I need help changing my DrawerAmount to an integer, not a string!</p>
</blockquote>

<p>Try this:</p>

<pre><code>v = int(DrawerAmount) 
</code></pre>

python python-3.x