A regular expression in python is a special module that helps filter sequence of strings, characters and symbols using specialized syntax written in a particular pattern. Like any other programming language, regular expression module ‘re’ in python allows you to process unlimited amount of strings that passes regular expression requirements. [Read more...]
Python Date and Time
Python can handle date and time on your system in multiple ways. Depending on your operating system the method to access the system time and date will vary. Code in this tutorial is tested on ubuntu linux and windows operating system. [Read more...]
Python Tuples
A tuple in python is a sequence of immutable objects. If you know how list works then you can easily understand how tuples in python work. They’re just like lists but they can’t be changed. [Read more...]
Python Lists
The list in python is the most versatile type that contains group of comma-separated items in a square bracket. Each value in a python list is identified by an index. Lists are much more flexible than arrays as they allow us to hold items of different types. [Read more...]
Python Dictionaries
In python when you work with string, lists and tuples then you’re using integers as indices. You’re not allowed to use any other data type for indices and using it in a program will give you an error. If you want to use any other type than integer your only option is to use dictionaries. [Read more...]
How to Use SQLite with Python
This tutorial is for those who want to learn how to use sqlite with python programming language. Depending on your operating system, you need to have python setup on your computer. I assume you have working python instillation on your operating system. If not then head over to python.org and download the python distribution respective to your operating system version. [Read more...]
How to Install Python Modules with easy_install on Windows
Many python frameworks and modules have dependencies and require installation in their respective folders in order to work. If you’re using any python module then you’ll find it confusing to install it under python’s working directory in windows. [Read more...]
Using SQLite in Ironpython
SQLite is popular database engine which is very easy to use under python.Unfortunately it doesn’t work officially under ironpython as of now. In case of ironpython there is no official implementation from the ironpython team. But you don’t have to wait for the official fix. There is already one fix that lets you use SQLite under ironpython. [Read more...]
Get IP Address Using IronPython
You can create simple window based apps using ironpython. By using ironpython you can quickly write python code to access .NET framework and respective methods. In this article you’ll learn how to get IP address of your local machine. [Read more...]
How to Use Scipy – Python Scientific Library
Matlab is one of the popular software used in academics and labs to solve problems in mathematics, engineering and research domain. But matlab being a commercial software it is often not within reach of most of the students and developers. There are some open source and free equivalent of matlab software like octave, scilab and scipy. Here in this article we’re going to learn about scipy. [Read more...]