Program 1:
Output:
For print a massage
Hello Python!
Program 2:
Output:
For addition of two number
Sum of two number is 30
Program 3:
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:
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:
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:
Output:
For division of two number by input
Enter a number: 30
Enter another number: 20
Division of two number is 1.5
Program:
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