ผลการค้นหา: "#PythonProTips"

19 ผลลัพธ์
SimpliPy
SimpliPy@SimpliPy·
Python genius here! 🎓✨ Did you know docstrings could replace comments? Here's why and when to do so!🧐✍️✨ ✅ Documenting instead of commenting ✅ Non-obvious variables/values🤯🔥 🔗 Read the full article: pythonmorsels.com/avoid-comments/ #PythonProTips
English
0
0
1
1
Fun with Python 🐍
Fun with Python 🐍@YourPythonFun·
Common pitfalls to avoid: • Avoid using 'is' for truthiness. • Watch out for None vs False. Master these, and your coding journey gets smoother! 🚀 #PythonProTips
English
1
0
0
0
Fun with Python 🐍
Fun with Python 🐍@YourPythonFun·
Common pitfalls to avoid: • Avoid using 'is' for truthiness. • Watch out for None vs False. Master these, and your coding journey gets smoother! 🚀 #PythonProTips
English
1
0
0
1
Fun with Python 🐍
Fun with Python 🐍@YourPythonFun·
Common pitfalls to avoid: • Avoid using 'is' for truthiness. • Watch out for None vs False. Master these, and your coding journey gets smoother! 🚀 #PythonProTips
English
1
0
0
1
Fun with Python 🐍
Fun with Python 🐍@YourPythonFun·
Common pitfalls to avoid: • Avoid using 'is' for truthiness. • Watch out for None vs False. Master these, and your coding journey gets smoother! 🚀 #PythonProTips
English
1
0
0
2
Rahul Rathore
Rahul Rathore@raahulrathore·
🚀 Want to supercharge your Python collections? Try namedtuple! It's like tuples but with a twist - fields are accessible by name. Cleaner code, zero overhead. Dive in with `from collections import namedtuple` 🐍 #PythonProTips #CodeCleaner
English
0
0
0
10
Victor I. Afolabi
Victor I. Afolabi@victor_iyi·
#PythonProTips Ever come across "list index out of range"? This is the piece of code that runs when you index a Python list. Example: my_list[0] # GetItem my_list[0] = 5 # SetItem It helps at times to look into the source code of your language. #L223" target="_blank" rel="nofollow noopener">github.com/python/cpython…
Victor I. Afolabi tweet media
Winnipeg, Manitoba 🇨🇦 English
0
0
4
0
Victor I. Afolabi
Victor I. Afolabi@victor_iyi·
#PythonProTips There's always a clever solution to any problem. Here's an implantation of the `pow(...)` function in Python. Given that the original function was written in C & more low level, this is the closest you can get with #Python.
Victor I. Afolabi tweet mediaVictor I. Afolabi tweet media
English
1
2
7
0