Python working with for loop

Python working with for loop

Let's start working with for loop in python. For loop is used when want to execute a block of code repeatedly a fixed number of times.  Python also comes with the support of iterating the sequences using the for loop. we can use any number of for loops one inside another. we call it as neste...

Read more

Python working with if ... elif ... else conditions

Python working with if ... elif ... else conditions

Lets start working withif ... elif .. else conditions in python. "if ... elif .. else" allow us to take decisions. It can be nested. In some cases we may need to execute the code based on conditions. Then we use "if ... elif ... else" conditions in python. For example, if we wan to sor...

Read more

working with xls and xlsx files in python

working with xls and xlsx files in python

Let's start working with xls and xlsx files in python. We can read data from xls or xlsx files using python programming and we can also write to xls or xlsx files using python programming. We do this by using the python package "openpyxl".  The package "openpyxl" can be found in Python Packa...

Read more

django image and file upload using ajax

django image and file upload using ajax

Let's learn about how to work with Django image and file upload using Ajax. In most of the cases I personally use django file or image uploads using ajax. If we use normal upload then browser will reload the page in order to load the requested response and we will not have the files in the f...

Read more

working with vim editor in ubuntu

working with vim editor in ubuntu

Let's start working with vim editor  on ubuntu. vim is a light weight and powerful text editor used with the command line. It is very useful for system administrators. when deploying the application on the server normal GUI based text editors will not work. Because, GUI is absent on&nbs...

Read more

Python working with lists

Python working with lists

List is a one of the most used data types in python programming.  It is a heterogeneous and  ordered set of data structure in python. As it is an ordered data structure so, it obiviously supports indexing. We can access the elements of a list using index. It supports both posi...

Read more

Python working with frozenset data type

Python working with frozenset data type

Frozenset is an immutable unordered collection of unique elements. It holds collection of element but it does not guarantee the order of the elements in it. As it is immutable we cannot able to update the data once created. when we need to get a unique elements out of group of the repeated elemen...

Read more

Python working with tuple data type

Python working with tuple data type

Tuple is a sequential data structure in python. It is a immutable data type so, we cannot make any modifications to the tuple once created. Tuple stores the data in a sequencial manner. we can access the data in the tuple with indexs. Form the from index starts from 0, 1,2, 3, etc. Tuple also sup...

Read more

Python working with strings

Python working with strings

String is a most used data type in python programming. A string is simply a series of characters. Anything inside quotes is considered as a string in Python, we can use either single or double quote. As python is a case sensitive language so string 'an' is considered different from string 'A...

Read more

python polymorphism

python polymorphism

Polymorphism can be defined as declaring a uniform interface that is not aware of the type of the data, leaving implementation details to concrete data types that implement the interface. In general terms we can define it as different objects acts differently for same interface. In python we...

Read more
Blog Archive