> ## Content Index
> Fetch the complete content index at: https://developerinsider.co/llms.txt
> Use this file to discover other available public pages before exploring further.

# Basic Program - Python Programming Language
- URL: https://developerinsider.co/basic-program-python-programming-language/
- Published: 2017-02-10T15:14:06.000Z
- Updated: 2018-03-29T17:01:03.000Z
- Author: Anit Kumar
- Tags: Python

#### Program 1:

```python
print("For print a massage")
print("Hello Python!")

```

**Output:**

```
For print a massage
Hello Python!

```

#### Program 2:

```python
print("For addition of two number")
a = 10 
b = 20     
sum = a+b
print("Sum of two number is ",+sum)

```

**Output:**

```
For addition of two number
Sum of two number is 30

```

#### Program 3:

```python
print("For addition of two number by user input")
a = int(input("Enter a number: "))
b = int(input("Enter another number: "))
sum = int(a+b)
print("Addition of two number is ",+sum)

```

**Output:**

```
For addition of two number by user input
Enter a number: 30
Enter another number: 20
Sum of two number is 50

```

#### Program 4:

```python
print("For subtraction of two number by user input")
a = int(input("Enter a number: "))
b = int(input("Enter another number: "))
sub = int(a-b)
print("Subtraction of two number is ",+sub)

```

**Output:**

```
For subtraction of two number by user input
Enter a number: 30
Enter another number: 20
Subtraction of two number is 10

```

#### Program 5:

```python
print("For multiplication of two number by user input")
a = int(input("Enter a number: "))
b = int(input("Enter another number: "))
mul = int(a*b)
print("Multiplication of two number is ",+mul)

```

**Output:**

```
For multiplication of two number by user input
Enter a number: 30
Enter another number: 20
Multiplication of two number is 600

```

#### Program 6:

```python
print("For division of two number by user input")
a = int(input("Enter a number: "))
b = int(input("Enter another number: "))
div = float(a*b)
print(" Division of two number is ",+div)

```

**Output:**

```
For division of two number by input
Enter a number: 30
Enter another number: 20
Division of two number is 1.5

```

#### Program:

```python
print("For swap two variable value with extra variable")
a = int(input("Enter the value of a: "))
b = int(input("Enter the value of b: "))
c = a
a = b
b = c
print("After Swapping")
print("Value of a = ",+a)
print("Value of b = ",+b)

```

**Output:**

```
For swap two variable value with extra variable
Enter the value of a: 20
Enter the value of b: 30
After Swapping
Value of a = 30
Value of b = 20

```