Question-61: Can you please map the following
1. print((3 ** 3), (3 * 3.), (3 * 3))
2.Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- Thanks for considering Python Certification Material
a.27 9.0
b.-0.5 0.5 0 -1
c.-3 3 19683
Answer:
Exp:
Parenthesis
- Any expression you want to calculate first should be included in Parenthesis.
- When you have complex calculations, then always use Parenthesis.
print("Complex Calc",(9 * ((99 % 12) + 22) / (2 * 17)) // 2) print("Avoid it",9 * 99 % 12 + 22/2 * 17 // 2) |
Operator Binding
- When there are same operator multiple times continuously in same expression.
- Then Operator binding happens
You can access to full explanation to question and answer from this page.