Skip to content
Sign upLog in
← Back to Community

What goes wrong?

Profile icon
[deleted]

There is a bug on line 23, I have no idea what goes wrong.

Comments
hotnewtop
Profile icon
Coder100

The code is a bit inefficient. You could have just done:

if string[i].upper() == string[i]: # had to be uppercase else: # had to be lowercase
Profile icon
JBloves27

It seems like your program is working just fine!

Profile icon
Kartang

you are missing a bracket at the end of line 22 and 24 that will fix the problem