Conditional Structure Exercises
Write a program that asks the user for two numbers and shows their division on the screen. If the divisor is zero the program must display an error.
Solution:
n = float(input("Enter dividend: "))
m = float(input("Enter divider: "))
if m == 0:
print("Error! It cannot be divided by 0.")
else:
print(n/m)
Step 1:
Enter Dividend:

Step 2:
Enter Divider:

Output:

#Python Programming Importance
Hope You will learn Something. Happy Coding