Coding Made Easy



Coding made easy.
Learn Python

How To Swap (Interchange) Two Numbers

This is a simple program to Swap 2 Numbers, which are accepted into the variables ‘a’ and ‘b ’.

First of all, we ask the user to enter the first number and the second number.

Then we accepted integer values for the variables ‘a’ and ‘b’.

Click here to know more about ‘how to enter values’. Continue reading “How To Swap (Interchange) Two Numbers”


How to Use Files in Python

Lets look into a program to create a file,

write some strings into it and also to read the string stored in it and to print it. file1 Continue reading “How to Use Files in Python”

How to Define a Simple ‘for’ Loop

Here we are going to discuss, how to define a simple ‘for’ loop.

forloop1Look at the code snippet: Continue reading “How to Define a Simple ‘for’ Loop”

How To Define a Simple Function Which Passes Parameters

Here  we a going to define a function which carries some parameters.
Here as in the previous program, we define functions.

But here some variables are passed as parameters.

funcal 2

Look at the code snippet:

def addd(a,b):

Here we have defined a function ‘addd’.

Continue reading “How To Define a Simple Function Which Passes Parameters”

How to Define a Simple Function Without Passing Parameters

So now we have learned to make a simple calculator.

But there we have not used function calls.
if you have missed it read it.

By using functions we can make that program much simpler than the one we had once written. Continue reading “How to Define a Simple Function Without Passing Parameters”

A simple program to Add, Subtract, Multiply and Divide

We have learned to print ‘hello world’ in the previous program.

If you haven’t , Please go here.

Now we are going to look into a simple program to

add, subtract, multiply and divide two numbers,something like a simple calculator.

Now lets look into our program. Continue reading “A simple program to Add, Subtract, Multiply and Divide”

Hello World

Let’s start the coding in python.

If you have not yet installed Python go here.

To know what Python is, go here.

Python is a very simple programming language.

We shall code the  “hello world” program in Python. Continue reading “Hello World”

Understanding Python

Programming in Python

Python is a general-purpose,interactive,object-oriented and high-level programming language.

Continue reading “Understanding Python”

Python : Installation

The Last post gave you an idea about Python and its Coding aspects.

If you missed that post,Then You may certainly go here.

First let me tell you how to install Python. Continue reading “Python : Installation”

Blog at

Up ↑