![]() |
|
[Python] Guessing game with difficult selection - my #3 code in python - 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] Guessing game with difficult selection - my #3 code in python (/showthread.php?tid=5664899) |
Guessing game with difficult selection - my #3 code in python - Malentor - Jul 8, 2017 just another code I made practicing, I will now try to read some documentation about the urllib library and try to make some different scripts, until now I only was able to make simple scripts like this one. PHP Code * - arkoydas - Jul 8, 2017 Simple and good.Keep working mate. why are you using sys module: (sys.stdout.write("")) in order to print something? * - TheWarOwl - Jul 8, 2017 (Jul 8, 2017 05:33 PM)arkoydas Wrote: Simple and good.Keep working mate. I believe just to put something into practice. Not necessary but good to learn * - Malentor - Jul 9, 2017 (Jul 8, 2017 05:33 PM)arkoydas Wrote: Simple and good.Keep working mate. hi, i wanted to print the some text in loading style and I able to do it only using sys.stdout.write+ sys.stdout.flush * - Hapi - Jul 9, 2017 You should try by adding some try/catches just in case the user doesn't enter a integer number. * - Malentor - Jul 9, 2017 (Jul 9, 2017 06:04 AM)Looka Wrote: You should try by adding some try/catches just in case the user doesn't enter a integer number. thank you , next codes will be using .try * - Ensky - Jul 10, 2017 Good work for your third ever script man. You don't need to use if statements for the levels, dictionaries will come in handy for this. If you don't understand anything in the code below, search the documentation. PM me if you still don't get it or post in the Python section, everyone (mostly) is willing to help! PHP Code |