Help please. How to do this ... For example, from the number 1, hash (b option) is taken, from the resulting hash one more hash (x option) is taken, etc. How to change the code so that you can simply set the number of options, for example 10 ( without writing x =, y =, etc.)
import hashlib for _ in xrange(10): b= hashlib.sha256("1").hexdigest() print (b) x=hashlib.sha256(b).hexdigest() print (x) y=hashlib.sha256(x).hexdigest() print(y)
xtwice (in the loop and inside it) - is it intended? If I understand correctly, you can write something likeb = "1"and thenfor _ in range(10): b = hashlib.sha256(b).hexdigest()- ⷶ ⷩ ⷮ ⷪ ⷩ