1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] Not sure why I'm getting a TypeError [duplicate]

Discussão em 'Python' iniciado por Stack, Setembro 10, 2024.

  1. Stack

    Stack Membro Participativo

    num_trades = int(input("Number of trades for today? "))
    for i in range(1, num_trades + 1):
    print()
    action = input("Trade number", i, "(buy/sell)? ")
    num_shares = int(input("Number of shares to buy? "))


    I'm getting a TypeError on the line,"action = input("Trade number", i, "(buy/sell)? ")"

    This error message says "TypeError: input expected at most 1 arguments, got 3"

    Don't know what it means and don't know how to correct. Help

    Thanks

    Continue reading...

Compartilhe esta Página