Quick actions

cmd+k|ctrl+k

Navigation

Languages

Operator Precedence

Snippet info

Language

Python

Visibility

public

Author

harshdeepsaini2757

Created

2025-11-01T16:57:06.450265Z

Updated

2025-11-01T16:57:06.450265Z

#Operator Precedence
print((20 - 3) + 2 ** 2)

# ()
# **
# * / //
# + -

print((5 + 4) * 10 / 2)
print(((5 + 4) * 10) / 2)
print((5 + 4) * (10 / 2))
print(5 + (4 * 10) / 2)
print(5 + 4 * 10 // 2)
INFO