Skip to content
← Back to Community
How come all of the code doesn't run?
Profile icon
Pizzaz4me

So, I started this banking simulator project but when I was testing whatever code I had all of it didn't run. This is my first time creating variables inside variables in python so I think the mistake is there but I couldn't find it and I'm not sure if it is because of me not calling variables properly

Answered by DynamicSquid [earned 5 cycles]
View Answer
Voters
Profile icon
kwth
Profile icon
Pizzaz4me
Comments
hotnewtop
Profile icon
DynamicSquid

You define a function how(), but never call it. Call it at the end of your else statement

Profile icon
Pizzaz4me

which else statement? @DynamicSquid

Profile icon
Coder100

The one where you defined how @PlaySoccer

Profile icon
Coder100

Line 19,

Personally I find it redundant to make a function that you only appear to use once @PlaySoccer

Profile icon
DynamicSquid

@PlaySoccer The else statement on line 19. Go the the end of that, and call the function how()

Profile icon
Pizzaz4me

I fixed it. Also, you hit 10k cycles! @Coder100

Profile icon
Pizzaz4me
Profile icon
Coder100
Profile icon
RYANTADIPARTHI

call the function how() at the end of your code

Screenshot 2020-11-14 at 5.42.32 PM

Just call it and maybe it will work

Profile icon
Squirrel777