I have a line array that values in position 5 can be either of these values:
"Tablespace Free Space (MB)", "Tablespace Space Used (%)"
if line[5] is any of these I need to do some extra work.
I have tried this:
if (line[5] in ("Tablespace Space Used (%)")|("Tablespace Free Space (MB)"))
# some other code here
I keep getting this error:
if (line[5] in ("Tablespace Space Used (%)"|"Tablespace Free Space (MB)"))
^
SyntaxError: invalid syntax
:at the end of your line.if (line[5] in ("Tablespace Space Used (%)", "Tablespace Free Space (MB)"):