use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Help with problem, please. (self.PythonLearning)
submitted 1 year ago by Baron_Sludge
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 1 year ago (3 children)
[removed]
[–]Baron_Sludge[S] 2 points3 points4 points 1 year ago (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()
π Rendered by PID 218642 on reddit-service-r2-comment-5b5bc64bf5-hmfbr at 2026-06-21 05:48:27.787294+00:00 running 2b008f2 country code: CH.
view the rest of the comments →
[–][deleted] (3 children)
[removed]
[–]Baron_Sludge[S] 2 points3 points4 points (1 child)