python installation on windows

python tutorial

python installation on windows Since windows don’t come with Python preinstalled, it needs to be installed explicitly. Here we will define step by step tutorial on How to install Python on Windows. Follow the steps below : Download Python Latest Version from python.org First and foremost step is to open a browser and open https://www.python.org/downloads/windows/ Here, … Read more

Types of programming languages

Programming languages A programming language is a means of communication for the user to communicate with the computer system. The programming language is a set of instructions which tells the computer what to do. This is a language which is understood by both man and machine. There are a number of programming languages. However all … Read more

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 Comment : Comment in Python

python tutorial

As programs get bigger and more complicated, they get more difficult to read. Formal languages are dense, and it is often difficult to look at a piece of code and figure out what it is doing, or why. For this reason, it is a good idea to add notes to your programs to explain in … Read more

python : If else example

python tutorial

Decision making is anticipation of conditions occurring while execution of the program and specifying actions taken according to the conditions. Decision structures evaluate multiple expressions which produce TRUE or FALSE as outcome. You need to determine which action to take and which statements to execute if outcome is TRUE or FALSE otherwise. Lets have an … Read more

Python Identity Operators Example

identity operator python

There are used to compare the memory locations of two operators. Example: #!/usr/bin/python a = 20 b = 20 if ( a is b ): print “Line 1 – a and b have same identity” else: print “Line 1 – a and b do not have same identity” if ( id(a) == id(b) ): print … Read more