[Tutor] (no subject)

Stealth Fleet 5familyobrien at gmail.com
Sun Nov 11 18:00:00 EST 2018


tokenAmount = input( "How many tokens would you like to buy or cash in?:  ")

print (tokenAmount)



def buy ():

    if tokenAmount <= 400:

        buy = tokenAmount * .2099

        print( " You would like to spend $"+(buy) + "on" + (tokenAmount) +
"tokens.")

    elif tokenAmount > "400" <= "549":

        buy = tokenAmount * .3999

        print( " You would like to spend $"+(buy) + "on" + (tokenAmount) +
"tokens.")

    elif tokenAmount >= "550" <= "749":

        buy = tokenAmount * .4999

        print( " You would like to spend $"+(buy) + "on" + (tokenAmount) +
"tokens.")

    elif tokenAmount >= "750" <= "999":

        buy = tokenAmount * .6299

        print( " You would like to spend $"+(buy) + "on" + (tokenAmount) +
"tokens.")

    else:

        buy = tokenAmount * .7999

        print( " You would like to spend $"+(buy) + "on" + (tokenAmount) +
"tokens.")



def cashIn ():

    cashIn = tokenAmount * .05

    print( "The amount of money you will receive is $"+ (cashIn))



tokenAmount works but the buy and cashIn are not being ran why? When I put
"print(buy, cashIn)" it gives me a long message that ends in an error any
and all help is greatly appreciated. Sent from Mail
<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10


More information about the Tutor mailing list