Bronze_Badges/seun-Choice-Coin-Python/helpers.py
def vote(escrow_private_key, escrow_address, option_zero_address, option_one_address, client):
    """Places a vote based on the input of the user."""
    voter = int(input("Vote 0 for zero and vote 1 for one: "))
    if voter == 1:
        make_vote(
            escrow_address,
            escrow_private_key,
            option_one_address,
            100,
            "Voting Powered by Vote Coin.",
            client,
        )
        print("Thanks for voting for one.")
    else:
        make_vote(
            escrow_address,
            escrow_private_key,
            option_zero_address,
            100,
            "Voting Powered by Vote Coin.",
            client,
        )
        print("Thanks for voting for zero.")
Places a vote based on the input of the user.
Places a vote based on the input of the user.
Places a vote based on the input of the user .
def vote(escrow_private_key, escrow_address, option_zero_address, option_one_address, client):
    voter = int(input("Vote 0 for zero and vote 1 for one: "))
    if voter == 1:
        make_vote(
            escrow_address,
            escrow_private_key,
            option_one_address,
            100,
            "Voting Powered by Vote Coin.",
            client,
        )
        print("Thanks for voting for one.")
    else:
        make_vote(
            escrow_address,
            escrow_private_key,
            option_zero_address,
            100,
            "Voting Powered by Vote Coin.",
            client,
        )
        print("Thanks for voting for zero.")
def vote ( escrow_private_key , escrow_address , option_zero_address , option_one_address , client ) : voter = int ( input ( "Vote 0 for zero and vote 1 for one: " ) ) if voter == 1 : make_vote ( escrow_address , escrow_private_key , option_one_address , 100 , "Voting Powered by Vote Coin." , client , ) print ( "Thanks for voting for one." ) else : make_vote ( escrow_address , escrow_private_key , option_zero_address , 100 , "Voting Powered by Vote Coin." , client , ) print ( "Thanks for voting for zero." )
Places a vote based on the input of the user.
Places a vote based on the input of the user .
"""Places a vote based on the input of the user."""
escrow_private_key
escrow_address
option_zero_address
option_one_address
client