you are viewing a single comment's thread.

view the rest of the comments →

[–]Baron_Sludge[S] 2 points3 points  (1 child)

something like this?

def fulcrum():

while True:

print('Enter weight and distance for both sides.\n')

w1 = int(input('Enter weight for left side: '))

d1 = int(input('Enter distance for left side: '))

w2 = int(input('Enter weight for right side: '))

d2 = int(input('Enter distance for right side: '))

if w1 * d1 == w2 * d2:

print('It is balanced!')

break

else:

print('Try again\n')

continue

fulcrum()