<gh_stars>1-10
import hashlib

class Block:
    def __init__(self, index, hash, previousHash, timestamp, data):
        """
        Block Constructor
        :param index: (int)
        :param hash: (String)
        :param previousHash: (String)
        :param timestamp: (float)
        :param data: (String)
        """
        self.index = index
        self.hash = hash
        self.previousHash = previousHash
        self.timestamp = timestamp
        self.data = data

    def __str__(self):
        temp = 'Block {index}:\n-hash: {hash}\n-previousHash: {previousHash}\n-timestamp: {timestamp}\n-data: {data}\n'
        return temp.format(index = self.index,
            hash = self.hash,
            previousHash = self.previousHash,
            timestamp = self.timestamp,
            data = self.data)
import hashlib

class Block:
    def __init__(self, index, hash, previousHash, timestamp, data):
        """
        Block Constructor
        :param index: (int)
        :param hash: (String)
        :param previousHash: (String)
        :param timestamp: (float)
        :param data: (String)
        """
        self.index = index
        self.hash = hash
        self.previousHash = previousHash
        self.timestamp = timestamp
        self.data = data

    def __str__(self):
        temp = 'Block {index}:\n-hash: {hash}\n-previousHash: {previousHash}\n-timestamp: {timestamp}\n-data: {data}\n'
        return temp.format(index = self.index,
            hash = self.hash,
            previousHash = self.previousHash,
            timestamp = self.timestamp,
            data = self.data)
Block Constructor         :param index: (int)         :param hash: (String)         :param previousHash: (String)         :param timestamp: (float)         :param data: (String)