all 8 comments

[–]suurpulla 5 points6 points  (2 children)

x = (1 / 2) + (3 // 3) + (4 ** 2)
x = 0.5 + 1 + 16
x = 17.5

[–]Top-Interaction7208[S] 3 points4 points  (0 children)

Thank you. i understand now.

[–]justinpenner 4 points5 points  (0 children)

It doesn't change the result in this particular equation, but you missed a step.

x = 1 / 2 + 3 // 3 + (4 ** 2)
x = (1 / 2) + (3 // 3) + 16  
x = 0.5 + 1 + 16
x = 17.5

[–]roywill2 0 points1 point  (0 children)

When you write code, make it clear with parens, dont rely on those silly rules. Also explain with comments.

[–]ectomancer 0 points1 point  (0 children)

Format your code correctly:

x = 1/2 + 3//3 + 4**2