Shaila BPython zip_longest() Function.Consider if we have two iterators of different lengths. then we iterate them together one iterator must end up with another iterator.3 min read·Jul 30, 2021----
Shaila BWrite your own web server in python.In python, there are libraries that allow you to write your own web server in a few lines.1 min read·Jul 22, 2021----
Shaila BLet’s learn about the special variable __name__ in python.In python, there is no main() function. When we run a python program, the code is given to the interpreter, then the given code is to be…1 min read·Jul 3, 2021----
Shaila BMeasuring the Memory of Python ObjectsUsing getsizeof () built-in function we can calculate memory used by an object. The standard library’s sys module provides the getsizeof…1 min read·Jan 18, 2021----
Shaila BDetermining if all elements in a list are identical in python.Solution : Count the occurrence of a first element. If it is the same as the length of a list then all the elements in a list are…1 min read·Jan 17, 2021----
Shaila BMeasure the time elapsed to execute your code in PythonUsing a time module, You can calculate the time taken to execute your code.1 min read·Jan 16, 2021----