Hack Forums
[Python] Need someone to mentor me - 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] Need someone to mentor me (/showthread.php?tid=5563485)

Pages: Pages 1 2


Need someone to mentor me - Davian - Feb 28, 2017

I need someone who can mentor me on Python and answer some questions for free.
If you're willing to help just PM me your skype.
Cheers🤝


* - captainspalding - Feb 28, 2017

Why not teach yourself like the rest of us?


* - Davian - Feb 28, 2017

(Feb 28, 2017 10:34 PM)captainspalding Wrote:  Why not teach yourself like the rest of us?
I obviously self learn but sometimes I have very specific questions.
Besides I think learning from someone is way more fun and effective.


* - captainspalding - Feb 28, 2017

Just not sure you're going to get the help you're looking for when asking for free. People who can actually code likely wont waste time on it without pay and people who can't code but have free time will likely try to help anyway.


* - Ensky - Mar 1, 2017

Just post your question here, 99% of us will be happy to assist.


* - Rocky Balboa - Mar 1, 2017

(Mar 1, 2017 02:17 AM)_:O_ Wrote:  Just post your question here, 99% of us will be happy to assist.



* - Davian - Mar 1, 2017

(Mar 1, 2017 02:17 AM)_:O_ Wrote:  Just post your question here, 99% of us will be happy to assist.

Well I know it's a noobish question but when do I need to use parentheses ()?
I see people writing print("Hello world") and print "Hello world"
What's the difference? and when do I use it?


* - (╯°□°)╯︵ ┻━━┻ - Mar 1, 2017

(Mar 1, 2017 07:10 AM)looting Wrote:  Well I know it's a noobish question but when do I need to use parentheses ()?
I see people writing print("Hello world") and print "Hello world"
What's the difference? and when do I use it?

Python 2 has print as a statement where Python 3 has print as a function (the parentheses).


* - Davian - Mar 1, 2017

(Mar 1, 2017 08:35 AM)(╯°□°)╯︵ ┻━━┻ Wrote:  Python 2 has print as a statement where Python 3 has print as a function (the parentheses).

Oh lol thanks🤝 and what does %d do?


* - (╯°□°)╯︵ ┻━━┻ - Mar 1, 2017

(Mar 1, 2017 10:17 AM)looting Wrote:  Oh lol thanks🤝 and what does %d do?

Can you post an example? If you're talking about inside of a string, pretty sure %d is for decimal formatting.


* - Pain - Mar 1, 2017

isn't % stand for remainder so 5%2 would be 1


* - (╯°□°)╯︵ ┻━━┻ - Mar 1, 2017

(Mar 1, 2017 10:19 AM)ƤAIƝ Wrote:  isn't % stand for remainder so 5%2 would be 1

Yes, % is modulus as well.


* - Vitani - Mar 1, 2017

Feel free to check out my Python 101 guide here: https://hackforums.net/showthread.php?tid=5201126
If you need any further assistance or if you have any questions feel free to PM me.


* - Davian - Mar 1, 2017

(Mar 1, 2017 10:18 AM)(╯°□°)╯︵ ┻━━┻ Wrote:  Can you post an example? If you're talking about inside of a string, pretty sure %d is for decimal formatting.
"I'm browsing %d" %(hackforums)
(Mar 1, 2017 10:41 AM)Vitani Wrote:  Feel free to check out my Python 101 guide here: https://hackforums.net/showthread.php?tid=5201126
If you need any further assistance or if you have any questions feel free to PM me.

Will do! thanks :3


* - (╯°□°)╯︵ ┻━━┻ - Mar 1, 2017

(Mar 1, 2017 10:55 AM)looting Wrote:  "I'm browsing %d" %(hackforums)

Will do! thanks :3

%d is a placeholder for a decimal. For your example, you would use %s for string.