Horje
blockchain.py Code Example
blockchain.py
from hashlib import sha256
x = 5
y = 0  # We don't know what y should be yet...
while sha256(f'{x*y}'.encode()).hexdigest()[-1] != "0":
    y += 1
print(f'The solution is y = {y}')
blockchain.py
{
 "sender": "my address",
 "recipient": "someone else's address",
 "amount": 5
}
blockchain.py
$ python blockchain.py
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)




Python

Related
json timestamp to date python Code Example json timestamp to date python Code Example
boto3 cross region Code Example boto3 cross region Code Example
Program to calculate the volume of sphere python Code Example Program to calculate the volume of sphere python Code Example
list sort by key and value Code Example list sort by key and value Code Example
rscript convert r to python script Code Example rscript convert r to python script Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8