Python

289
3317 reads

February 5, 2013

Python- " return " Statement


The return statement is used to return from a function i.e. break out of the function. We
can optionally return a value from the function as well.

37
1268 reads

February 5, 2013

Python-Functions


A function is a block of organized, reusable code that is used to perform a single or related actions. Functions provides better modularity for application and a high degree of code reusing.

259
3885 reads

February 5, 2013

While loop


This example explains a basic while loop and its working.

217
3636 reads

February 5, 2013

Iterating using for loop


The is an example illustrating the use of for loop as an iterator over strings,lists or a defined range

143
2377 reads

February 4, 2013

Handling Strings


This example illustrates the string manipulation functions
split
join
strip

59
2357 reads

February 4, 2013

Python - Nested " if-else " Statements


There may be a situation when we want to check for another condition after a condition resolves to true. In such a situation, we can use the nested if construct.

51
1342 reads

February 4, 2013

Python - " elif " Statements


The elif statement allows us to check multiple expressions for truth value and execute a block of code as soon as one of the conditions evaluates to true.

47
1391 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
1260 reads

February 4, 2013

Python - " if " Statements


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

296
3915 reads

February 4, 2013

Basic String Functions


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