RGB-HEX converter, not working. Please help!


#1

The same problem with alot of my projects, is that the code seems to amount to nothing even though I follow every step.


Heres my project.
Please help!


#2

It works if you remove the extra the indentation for the second and third def inside your file. Also the last line, convert() is getting a extra indentation which is forcing it to become part of the def convert() statement.

The proof:


#3

Oh thanks so much, I missed how the convert() function call, was still indented into def convert(). Thanks!


#4

Thanks again all my indenting was way out, fixed it now! Otherwise wouldn’t have noticed it, lol.