+ 1

[Python] Tips And Tricks Programmers should know

What are your best tips and tricks you use everyday for coding in Python? This question should help the beginners or the veterans :-) Please, give us some samples, lines code!!!! Thank you.

10th Nov 2017, 7:45 PM
Nadir SOUALEM
Nadir SOUALEM - avatar
4 Antworten
+ 12
# Comment heavily, you never know when you gonna need it again :)
10th Nov 2017, 7:50 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 9
Ultimate tip source: Google
10th Nov 2017, 7:48 PM
David Akhihiero
David Akhihiero - avatar
+ 5
I don't use Python, but Kuba is spot on. Nothing worse than coming back to a code you haven't touched in months/years and wondering to yourself "wtf was I thinking? What's going on here?" Even further, what if someone else needs to use your code or if you're using someone elses code? It's a pain when someone doesn't document/comment and you have to spend time trying to figure out their logic/flow/train of thought from when they wrote the code.
10th Nov 2017, 8:19 PM
AgentSmith
+ 3
pypi https://pypi.python.org/pypi here you find all libraries you can install with pip
10th Nov 2017, 8:04 PM
Oma Falk
Oma Falk - avatar