Python

76
1423 reads

January 28, 2013

Variables: Multiple Assignment


Multiple Assignment:
Python allows us to assign a single value to several variables or to assign multiple objects to multiple variables simultaneously.

77
1588 reads

January 28, 2013

Variables: Declaration & Assignment


Variables are nothing but reserved memory locations to store values.
This means that when we create a variable we reserve some space in memory to store values like 100,100.00,"Tom Hanks".

28
1306 reads

January 25, 2013

even or odd


Function to find whether a number is even or odd.

99
1342 reads

January 25, 2013

Multiway Branching


This program shows how to use multiple if else statements in python.

288
4199 reads

January 25, 2013

nested for loop


This code demonstrates nested for loop in python.Indentation of statements is very important.

62
1323 reads

January 25, 2013

Passing Arguments by Value in function


This code shows how to pass arguments in a function.

237
2130 reads

January 25, 2013

Define a function


This program shows how to define a function in python.

29
1312 reads

January 25, 2013

while example


This is a simple demonstration of while loop.

50
1336 reads

January 25, 2013

for example


This code demonstrates how for loop works in python.

366
4786 reads

January 25, 2013