Python

47
746 reads

February 4, 2013

Python - " if-else " Statements


An if statement can be followed by an optional else statement, which executes when the boolean expression is false.

46
674 reads

February 4, 2013

Python - " if " Statements


An if statement consists of a boolean expression followed by one or more statements.

296
3332 reads

February 4, 2013

Basic String Functions


This is an example that explains about some of the basic string handling functions in python.

359
4050 reads

February 2, 2013

Basic Python Strings


This example illustrates the basic definitions of a string and the ways in which they are defined.

61
902 reads

February 1, 2013

Python-Continue Statement


Continue Statement :
The continue statement, also borrowed from C, continues with the next iteration of the loop.

49
684 reads

February 1, 2013

Python-Break Statement


Break statement :
The break statement, like in C, breaks out of the smallest enclosing for or while loop.

388
5023 reads

February 1, 2013

2D lists


This example shows how to create a 2D array using a list and how to display that 2D list in a matrix format

38
718 reads

February 1, 2013

Python-For Loop


For Loop :

127
785 reads

February 1, 2013

List as a Stack


This example illustrates the use of lists as a stack along with the basic stack handling operations:
popping
adding

27
773 reads

February 1, 2013

Python-While Loop


While Loop :
A loop statement allows us to execute a statement or group of statements multiple times.