Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Our dummy blockchain with 3 blocks
- blockchain = ["block0","block1","block2"]
- #Length of our blockchain is "n"
- n=len(blockchain)
- x=0
- #Use the while loop to print each block "while" block number is less than length of the chain
- while x<n:
- print(blockchain[x])
- x=x+1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement