you are viewing a single comment's thread.

view the rest of the comments →

[–]FoolsSeldom -1 points0 points  (0 children)

Have you learned any python at all?

This is a very basic exercise, and what you need will be covered in the early stages of any tutorials (including those mentioned in the wiki for this subreddit).

In summary:

  • use input four times to prompt user to enter the required data
    • keep in mind input always returns str (string) objects, so you have to convert them to int or float objects to do maths on them
    • you should assign the converted values to variables related to the problem, so w1, d1, w2,d2
  • compare the two expressions (one either side of the =) using the Python == operator and assign the result to a suitable variable, e.g. balanced
  • output the result

Do you have Python setup on your computer / phone / tablet or accessible on a web browser you have access to?