OP 06 April, 2021 - 09:29 AM
x = int(input("x: "))
y = int(input("y: "))
x2 = int(input("x2: "))
y2 = int(input("y2: "))
result = y2-y/x2-x
print(f"({y2}-{y})/({x2}-{x}) = {result}")
x = float(input("x: "))
y = float(input("y: "))
x2 = float(input("x2: "))
y2 = float(input("y2: "))
result = y2-y/x2-x
print(f"({y2}-{y})/({x2}-{x}) = {result}")
try
x = float(input("x: "))
y = float(input("y: "))
x2 = float(input("x2: "))
y2 = float(input("y2: "))
except ValueError
print("LOL")
result = y2-y/x2-x
print(f"({y2}-{y})/({x2}-{x}) = {result}")
try
x = float(input("x: "))
y = float(input("y: "))
x2 = float(input("x2: "))
y2 = float(input("y2: "))
except ValueError:
print("LOL")
result = y2-y/x2-x
print(f"({y2}-{y})/({x2}-{x}) = {result}")
y = int(input("y: "))
x2 = int(input("x2: "))
y2 = int(input("y2: "))
result = y2-y/x2-x
print(f"({y2}-{y})/({x2}-{x}) = {result}")
x = float(input("x: "))
y = float(input("y: "))
x2 = float(input("x2: "))
y2 = float(input("y2: "))
result = y2-y/x2-x
print(f"({y2}-{y})/({x2}-{x}) = {result}")
try
x = float(input("x: "))
y = float(input("y: "))
x2 = float(input("x2: "))
y2 = float(input("y2: "))
except ValueError
print("LOL")
result = y2-y/x2-x
print(f"({y2}-{y})/({x2}-{x}) = {result}")
try
x = float(input("x: "))
y = float(input("y: "))
x2 = float(input("x2: "))
y2 = float(input("y2: "))
except ValueError:
print("LOL")
result = y2-y/x2-x
print(f"({y2}-{y})/({x2}-{x}) = {result}")