title: how to divide a variable by a number in python?
body: <p>i am building a python script for finding the ETA of files when uploading to the internet. I did the rough working the i tried doing it on python.
   Basically the program asks you to input the file size and the uploading speed. 
  But i'm stuck!!</p>
  
  <p>The script is this:.. (in progress)</p>
  
  <pre><code>print "UPLOADING TIME COVERTER"
  print
  print " Please enter the file size in mb"
  size = raw_input()
  # for e.g 237mb
  print
  print "Please enter the current uploading speed in kb /sec"
  speed = raw_input()
  # for e.g 60kb/sec
  print
  A = speed * 60
  # speed is changed into minutes
  B = (A / 1024)
  #KB  is changed in MB
  C = (B / size)
  print "your eta is %r hours" %(C)`
  </code></pre>
  
  <p>The error I receive is this:</p>
  
  <pre><code>Traceback (most recent call last):
    File "uploadingeta.py", line 14, in &lt;module&gt;
      B = (A - 1024)
  TypeError: unsupported operand type(s) for -: 'str' and 'int'.
  </code></pre>
  
  <p>I searched google and everywhere but couldn't a solution. </p>