Bracket not showing as closed in Python 3

I’m just starting to learn Python 3.9 as my first language. I have been fighting with this error for a while now, and I can’t figure out what the issue is.

Here’s what I’m working on:

def eval_express(eqstring[0], eqstring[1], eqstring[2]):
    eqstring[0], eqstring[2] = float(eqstring[0]), float(eqstring[2])
    return opdict[eqstring[1]](eqstring[0], eqstring[2])

I’m receiving an error that the “(” after eval_express is not closed, but as far as I can tell it is. At first, I thought it was just a glitch, but despite numerous attempts to rewrite it, increase/decrease the number of arguments, etc. it persisted. The error cropped up after I modified the arguments from variables to list items, but I don’t see why that would affect it. Can anyone provide some clarification on what the program’s getting hung up on?

Thank you for your help!


IBPS Clerk Prelims Result 2021, Check Result Date

Unable to reset array in asynchronous Node.js function despite using Callbacks