Skip to content
Sign upLog in

IndexError

Profile icon
ggigabyte

Just run it and you'll see. I've no clue where's the bug and why so please help me!

You are viewing a single comment. View All
Profile icon
c4syner

If the goal of the elif block where your error is occurring is to put the variable cmd into a list of characters. Then set ansnum = 0 rather than ansnum = 4