メインコンテンツへスキップ

"string index out of range" error within quicksum

ユーザーの入力を待っています。

コメント

2件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support.
  • Jaromił Najman
    • Gurobi Staff

    Hi Abhishek,

    Could you please post a minimal reproducible example? It is very hard to provide useful help with this little of information.

    You could try to isolate the error by running a \(\texttt{for}\)-loop for the \(\texttt{position[i] == 'Defender' part only}\)

    for i in players:
    print(i)
    print(position[i])
    if position[i] == 'Defender':
    print("In if-clause")

    and see what happens.

    Best regards, 
    Jaromił

    0

投稿コメントは受け付けていません。