Python Division

Description

Python program to get two integer numbers, divide both the integers and dispaly the quotient.
Sample Input 1:
10
3
Sample Output 1:
3.3333
Input2:
29
2
Output2:
14.5

Solution

num1=int(input("Enter First number:"))
num2=int(input("Enter second number:"))
quotient=num1/num2
print(quotient)

We are Teaching "Web Development using Python" through Online.

View Tutor Profile and Course Syllabus

Explanation

Read two inputs using input() method.
Conver it into integer by int() method.
Divide it using / operator. It gives quotient of division operation.
Ramesh P Natarajan

Author - Ramesh P Natarajan

Software Developer and Technology Trainer, very much passionate in the field of Software Application Development, Machine Learning and Search Engine Optimization.

Write to: [email protected]





Interesting Pattern Programs: for more Patterns

Input:
5
Output:
*
**
***
****
*****
****
***
**
*Solution
Input:
5
Output:
    *
   ***
  *****
 *******
*********
 *******
  *****
   ***
    *Solution
Input:
5
Output:
*        *
**      **
***    ***
****  ****
**********Solution
Input:
5
Output:
*       *
**     **
***   ***
**** ****
*********Solution
Input:
5
Output:
*       *
**     **
***   ***
**** ****
*********
**** ****
***   ***
**     **
*       *Solution
Input:
5
Output:
*********
 *******
  *****
   ***
    *
   ***
  *****
 *******
*********Solution