Python Function

python tutorial

What are functions? Functions are a convenient way to divide your code into useful blocks, allowing us to order our code, make it more readable, reuse it and save some time. Functions are a key way to define interfaces so programmers can share their code. Function is a block of organized, reusable code that is … Read more

Python Comparison Operators Example

Comparison operators

These operators compare the values on either sides of them and decide the relation among them. They are also called Relational operators. Example: #!/usr/bin/python a = 21 b = 10 c = 0 if ( a == b ):    print “Line 1 – a is equal to b” else:    print “Line 1 – … Read more

Python : Installation on Windows and Simple Example

python tutorial

What is python? Python is an interpreted programming language. As it is a programming language so it tells a computer what to do. However, the computer doesn’t read the language directly – there are hundreds of programming languages, and it couldn’t understand them all. So, when someone writes a program, they will write it in … Read more