Ask coding questions

← Back to all posts
line 260 elif invalid
SolomonKnutzen2

console says that the elif statement is invalid and I can't find the reason why

Voters
SolomonKnutzen2
Comments
hotnewtop
MrVoo

You're missing a ) on line 259, whenever you have a confusing error check the surrounding lines

CosmicBear

Add another bracket at the end of line 259:
print ('%i moles of %s%s%s%s with %i liters' % (targ_mole, targ_one,targ_coef_str_one.translate(SUB), targ_two, targ_coef_str_two.translate(SUB, targ_liters)))