![]() |
|
I suck at coding need some help - Printable Version +- Southperry.net (https://www.southperry.net) +-- Forum: Social (https://www.southperry.net/forumdisplay.php?fid=14) +--- Forum: Rubik's Cube (https://www.southperry.net/forumdisplay.php?fid=58) +--- Thread: I suck at coding need some help (/showthread.php?tid=70899) |
I suck at coding need some help - The Great One - 2014-04-26 Okay, so I have to make a code in python that converts from decimal to binary decimal to hexadecimal and lastly from binary to decimal. This is what I have so far: Decimal to binary
Spoiler
decimal to hexadecimal
Spoiler
Binary to decimal
Spoiler
I try to run these and I keep getting syntax errors so the program won't run and I have no idea how to fix them. So could anyone help me correct them not necessarily do them for me but at least give me a better explanation of where the errors are and what to do to fix them any help at all would be appreciated I'm at my wits end here. I suck at coding need some help - Kabanaw - 2014-04-26 Good news is decimal to binary and binary to decimal seem to work fine. The only one that seems to have a problem is decimal to hexadecimal. Code: def decToHex():If you make the changes where I added comments it should compile. I would also highly recommending downloading a good python IDE - I currently use PyCharm and it works pretty well. |