0

Throwing a syntax error at line 32 at the elif

can someone give some suggestions. https://code.sololearn.com/cqZ9LreXdB7i/?ref=app

12th Sep 2017, 3:15 PM
James Barrow
James Barrow - avatar
2 Answers
+ 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")
12th Sep 2017, 3:23 PM
Kartikey Sahu
Kartikey Sahu - avatar
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.
12th Sep 2017, 3:18 PM
Testing003