![]() |
|
[Python] A tool with calculator and binary to text and more!! - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Python] A tool with calculator and binary to text and more!! (/showthread.php?tid=4294730) |
A tool with calculator and binary to text and more!! - SIM-2044150 - Jun 19, 2014 Well this is something I made in Python it has a couple of cool things :) if code below doesnt work then use this pastebin link http://pastebin.com/iSPCuWg0 PHP Code * - glob - Jun 19, 2014 HF code tags break formatting so you should keep that in mind and use [ php ] tags instead. * - HbananF - Jun 19, 2014 Looks good, thanks for sharing. I'm going to give a shot at learning Python again. :) * - SIM-2044150 - Jun 19, 2014 (Jun 19, 2014 04:13 PM)glob Wrote: Formatting seems to still be broken. Some of your if statements are out of place in the calculator section Well idk the code on my desktop works ill put it on PasteBin http://pastebin.com/iSPCuWg0 * - ßlack мesa - Jun 20, 2014 Looks all well a good, but there are many areas where your code could be improved. For example, each function inside your calculator function uses the following lines of code. PHP Code You will learn a lot if you looked into Object-Oriented Programming and started creating classes in Python. This would allow you to create a Calculator class that has a single inputting method, which can then easily be used for all the rest of your calculator's operations. Good luck! |