title: TypeError: float() argument must be a string or a number in time.sleep()
body: <p>I have a interval time of 30 seconds, which I am adding in my Python script in time.sleep() for 30 seconds.</p>
  
  <pre><code>interval="00:00:30"
  interval_seconds=interval.split(":",2)
  interval_seconds[2]=interval_seconds
  print interval_seconds
  </code></pre>
  
  <p>Now I am using this value in my code as:</p>
  
  <pre><code>count=2
  while(count&gt;0):
      print "inside while"
      time.sleep(float(interval_seconds))
      count=count-1
  </code></pre>
  
  <p>While running I am getting this error: </p>
  
  <pre><code>time.sleep(float(interval_seconds))
  TypeError: float() argument must be a string or a number
  </code></pre>