Joined July 2014
Python is the #1 programming language in the world: bit.ly/2eNNcO9 - Proud to be part of this wonderful community. #positivepython
8
301
15
454
zip(zero or more) function allows you to iterate over number of iterables. #Python
3
14
You can concatenate list of string using String join() method #Python
4
filter (function,iterable) - evaulate given iterable against a condition and creates new iterable with items passing that condition. #Python
1
6
map() creates a new iterable by applying a given function to every element of the source iterable. #Python
5
Using timedelta to find the differences between dates in #Python.
1
5
Try using strftime function to convert python date-time object to string. #Python
2
Generators are iterators where the values are generated at the time of need without creating or saving all items. #Python
1
5
You can pass function as an argument, assign a #function to a variable in #Python.
1
5
Try using built-in method 'enumerate' for any iterables in #Python.
1
2
Python treats mutable default arguments in function definitions differently #Python Here comes both good and bad practice.
Try using two leading underscores ( __x ), to define private class variables. #Python
1
7
If there is no any exceptions at TRY clause, the ELSE clause will be executed. #Python
Using compound statements in #Python is a good practice!
2
5
Right way to use string split method in #Python.
Empty list ([ ]), zero (0), float zero ( 0.0 ), None and Empty String ( "") always evaluate to False. #Python
1
4
Try to use all CAPS_AND_UNDERSCORE to identify constants in #python
1
3
Checking whether two objects (lists, dictionaries, custom objects) you created are equal or not is called a test of identity in #Python.
Use get() method in #Python's dictionary to return a default value if key is not found. #programming
1
7
Comparisons can be chained arbitrarily in #python. x < y <= z is equivalent to x < y and y <= z
2
4