Filter
Exclude
Time range
-
Near
Comprehensions are used for writing cleaner, faster code! Here’s how they work . #PythonComprehensions #PythonProTips numbers = [1, 2, 3, 4, 5] squares = [x**2 for x in numbers] # List even_squares = {x: x**2 for x in numbers if x % 2 == 0} # Dictionary
3
3
15
#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. github.com/python/cpython/bl…
4
#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.
1
1
6
#python38 has cool new features. But the ":=" just isn't good for readability. It's almost like the case of the "reduce" function in #Python #PythonProTips #ProTips
2
3
#PythonProTips: Figured out a way to automate normal routes & API routes in #flask. #Python #ProTips #decorators #115Garage
3
5
6 Apr 2019
#PythonProTips: Ever tried extending your #python functions with #decorators? This #program uses #memoization to speedup computation of #Fibonacci numbers. #115Garage #ProTips #hire
5
#PythonProTips: Ever tried extending your #python functions with #decorators? This #program uses #memoization to speedup computation of #Fibonacci numbers. #115Garage #ProTips
4
1 Apr 2019
#PythonProTips Creating #spinners for time consuming operations in #Python with #mutiprocessing library. #115Garage #protips #hire
3
#PythonProTips: Always have a stubs file (.pyi) for your Python modules, especially when written in C/C . #protips
1
2