Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Python 

Need someone to mentor me

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🤝
Why not teach yourself like the rest of us?
(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.
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.
Just post your question here, 99% of us will be happy to assist.
(Mar 1, 2017 02:17 AM)Ensky Wrote:  Just post your question here, 99% of us will be happy to assist.
(Mar 1, 2017 02:17 AM)Ensky 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 07:10 AM)Davian 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).
(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 10:17 AM)Davian 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.
isn't % stand for remainder so 5%2 would be 1
(Mar 1, 2017 10:19 AM)Pain Wrote:  isn't % stand for remainder so 5%2 would be 1

Yes, % is modulus as well.
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.
[Image: hW3Ktfp.png]
(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 10:55 AM)Davian 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.