#!/bin/python3
importblockchainLibasblif__name__=="__main__":bl.initBlock()bl.addNewBlock("hello world")bl.addNewBlock("hello world 2")bl.getAllBlocks()
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
thank you for the post it really cleared many concepts i was struggling to understand.
here is the implementation in python
first file
blockchainLib.py
the second file
main.py