Right now my python code looks like this:
if imput == "con":
print "%.6f" % (con_getinfo["balance"])
elif imput == "xra":
print "%.6f" % (xra_getinfo["balance"])
elif imput == "neg":
print "%.6f" % (neg_getinfo["balance"])
elif imput == "grf":
print "%.6f" % (grf_getinfo["balance"])
elif imput == "ninja":
print "%.6f" % (ninja_getinfo["balance"])
Now i would like it to make it look less repetitive, like this:
if imput == con or imput == xra or imput == neg or imput == grf or imput == ninja:
But i can't figure out how to assign to each of the conditions the proper reaction.