title: hashlib hash my variables as float instead of str
body: <p>At my code i wanna hash variable &quot;liczba&quot; everytime as str, but in my code it count as str only first time. Every next loop it is hashed as float. Also that variable &quot;liczba&quot; should change by adding 0.0000000000000000000000000000000000000000000001 to it every loop. I try it by using</p>
  <pre><code>liczba = str(obecna_liczba)
  </code></pre>
  <p>but it not working idk why. Any advice?</p>
  <pre><code>import hashlib
  
  obecna_liczba = 0.0000000000000000000000000000000000000000000001
  koncowa_liczba = 0.0000000000000000000000000000000000000000000010
  liczba = '0.0000000000000000000000000000000000000000000001'
  
  
  filepath = &quot;X:\hashe.txt&quot;
  
  f = open(filepath, &quot;w&quot;)
  
  while(obecna_liczba &lt; koncowa_liczba):
      hash = hashlib.sha256(str(liczba).encode('utf-8'))
      f.write(hash.hexdigest())
      f.write(&quot;\n&quot;)
      obecna_liczba += 0.0000000000000000000000000000000000000000000001
      print(type(obecna_liczba))
      liczba = str(obecna_liczba)
      print(type(liczba))
  
  f.close()
  </code></pre>