Saturday, May 18, 2013

Python Basics 01

Table of Content 

Python is very easy to use and  it can be used for arithmetic operations. in this section lets look how we can use python as a calculator. This section is described three sections.

Python Basics 01 :- Python Oprerators
Python Basics 02 :- Python Data types, Variables and other basics (This will be discussed in next section)

Python Basics 01 :- Python Operators

An operator is a symbol that is used for calculations. In simple 3 + 5  3 and 5 are operands and + is the operator.Python language supports following type of operators.

  • Arithmetic Operators
  • Comparision Operators
  • Logical (or Relational) Operators
  • Assignment Operators 
  • Conditional (or ternary) Operators


Python Arithmetic Operators



Operator
Description
Example
+
Addition - Adds values on either side of the operator
a + b will give 30
-
Subtraction - Subtracts right hand operand from left hand operand
a - b will give -10
*
Multiplication - Multiplies values on either side of the operator
a * b will give 200
/
Division - Divides left hand operand by right hand operand
b / a will give 2
%
Modulus - Divides left hand operand by right hand operand and returns remainder
b % a will give 0
**
Exponent - Performs exponential (power) calculation on operators
a**b will give 10 to the power 20
//
Floor Division - The division of operands where the result is the quotient in which the digits after the decimal point are removed.
9//2 is equal to 4 and 9.0//2.0 is equal to 4.0

Now let's see some examples in python IDE. (click here to see how the python GUI is opened)

Thursday, May 16, 2013

Model Paper 03 Essay

I hope you have tried my previous model papers. If not you can try it now. Following are the links for them.
  1. Model Paper 01
  2. Model Paper 02
This is the third Model paper and it contains Essay type questions.
Download it and try to answer them.
If you found any problem then feel free to ask me.

To Download click here,



Wednesday, May 15, 2013

Sorry for inconvenience

Hi all, I have used adf.ly for this blog. But It is not used any of the link in the home page. But the other tab they are used. Sorry if you faced any problem. Just wait 5 seconds and then click Skip add. Thanks for your help Regards, admin

Saturday, May 11, 2013

Python Introduction


 

What is Python

 Python is a High Level Language. And it is also an Interpreted and Object Oriented Language. Since this is an interpreted language you do not need to compile your program before executing. The program will process at the runtime. Since python is an Object Oriented Programming language we can use Inheritance, Encapsulation, and Polymorphism. [These are described in Object Oriented Concept Topic]
Why Python
Python is refers as a scripting language. But it can also used as non scripting programming language also. Python is very easy to learn language and easy to read and understand language. It has lot of in build libraries that helps programmers easy to program. It has capability of connecting to any kind of databases and do programming.

Install Python (Windows)