Mastering Lists in Python Using List Comprehensions

Ever faced the problem of creating a unique lists in Python? or Accessing only specific elements of lists in Python? Python’s “List Comprehensions” offers you the immense power to create and use lists. Here is a brief introduction to understand and getting started on using List Comprehensions in Python. Python’s List Comprehensions Example 1 The… Continue reading Mastering Lists in Python Using List Comprehensions

Getting Started With Map, Filter, and Reduce in Python

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… Continue reading Getting Started With Map, Filter, and Reduce in Python

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… Continue reading Getting Started With Python Dictionaries: Python Tips

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… Continue reading 3 Ways to Read A Text File Line by Line in Python