Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #Our dummy blockchain with 3 blocks
  2. blockchain = ["block0","block1","block2"]
  3. #Length of our blockchain is "n"
  4. n=len(blockchain)
  5.  
  6. x=0
  7. #Use the while loop to print each block "while" block number is less than length of the chain
  8. while x<n:
  9. print(blockchain[x])
  10. x=x+1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement