Division of Two Numbers in Python

(Last Updated On: 09/11/2022)

In this program, we take input from the user and use the “/” operator to divide the numbers. It’s very simple to program to divide numbers in python.

Python Program to Divide Numbers With User Input

# Division of Two Numbers in Python

# we are taking a number from user as input
# entered value will be converted to int from string
num1 = int(input("Enter the First Number: "))
num2 = int(input("Enter the Second Number: "))

result = num1 / num2

#display the subtraction
print("Division of Two Number is ", result)


Enter the First Number: 158
Enter the Second Number: 29
Division of Two Number is  5.448275862068965

Leave a Reply

Your email address will not be published. Required fields are marked *