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
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 […]
Free Python Books Online
Beginning to learn Python and in need of free Python materials? There are a number of wonderful Python resources online for free. Here is a list of free python eBooks that can be either read online or downloaded it as pdf files and read at your leisure. Although the Python Documentation is a great resource, […]
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 […]
3 Ways to Read A Text File Line by Line in Python
Opening a file and reading the content of a file is one of the common things you would do while doing data analysis. In this tutorial, we will see 3 examples of reading a text file in Python 3. One easy way to read a text file and parse each line is to use the […]