Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



 1809

Help me fix my indentations please

by almightydefaulty - 06 April, 2021 - 09:29 AM
This post is by a banned member (almightydefaulty) - Unhide
45
Posts
2
Threads
3 Years of service
#1
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}")
This post is by a banned member (keulo_haha) - Unhide
27
Posts
1
Threads
3 Years of service
#2
Code:
 
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}")
:)
This post is by a banned member (almightydefaulty) - Unhide
45
Posts
2
Threads
3 Years of service
#3
love you :)

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)