Ask coding questions

← Back to all posts
Why is this not working?
isaiah08 (86)

I am working on a python player's handbook encyclopedia for D&D 5e. So far, my code has just been getting stuck on def statements, and not continuing past intro(). What is wrong?

Answered by CodingRobot12 (182) [earned 5 cycles]
View Answer
Comments
hotnewtop
CodingRobot12 (182)

oh it is because main.lower does not have parenthesis so do it like main.lower()

CodingRobot12 (182)

The introduction keeps looping because the if-statement is not true so therefore it will keep going back to the introduction.

isaiah08 (86)

Yes, thanks! That was the one it was getting stuck on @CodingRobot12

Bookie0 (6359)

maybe put the function races() above where you called it, so move it above line 7 (like just copy it into line 1)

Hope this helps! =)

isaiah08 (86)

Oh wait... this wasn't the main issue, but it was definitely an issue. Thanks [email protected]

Bookie0 (6359)

sure,

please this answer as correct if it helped! =) @isaiah08

isaiah08 (86)

Argh, i wish i could say that two people got the right answer. @Bookie0

Bookie0 (6359)

It’s ok glad to help! ;) @isaiah08

EpicGamer007 (1752)

Check your indents. Maybe that would work.