0
Throwing a syntax error at line 32 at the elif
can someone give some suggestions. https://code.sololearn.com/cqZ9LreXdB7i/?ref=app
2 ответов
+ 2
Replace your code with this
if psi <= 15:
ISP =_attribs(attributes[1]) + random.randint(4, 24)
print ("Major Psionic I.S.P.:" +ISP)
elif psi <= 35:
ISP =_attribs(attributes[1]) + random.randint(2, 12)
print ("Minor Psionic I.S.P.:" +ISP)
else:
print("No psionics")
0
The print function beneath the if has same indentation as the if. This means the elif beneath the print is unrelated to the if above it. Just add a space before the print and it should be good to go.