Python has a couple of nice built-in function in the flavor of functional programming paradigm. These built-in functions like map, filter, and apply combine very well with lambda functions. Map, filer, and reduce help you create, work with and tame lists in Python. For example sure, at some point you will have to deal with […]
Python Tips
Running Python Command Line and Getting Arguments
When you are writing a python program and want to run the Python script as a command from the terminal, you may want to get the arguments to the python program from command line. For example, you might want to execute the Python script and use its arguments. Python myPythonWithArguments.py input1 input2 Python’s sys module’s […]
Getting Started With Python Dictionaries: Python Tips
Dictionary in Python is a data structure that lets users store and retrieve things in python. As the name “dictionary” suggests, it has “key” and “value”. Needless to say each key has to be unique, but you can have duplicates in values. How to Create a Dictionary in Python? An easy way to create dictionary […]