out put of
x in (2,20,200) print (x)"
Answers
Answered by
5
x = (2, 20, 200) print (x)
Answer x = 200
Comma operator in an expression:
- Comma is used as a separator/ delimiter and an operator.
- x = 2, 20, 200 Here, comma acts as a separator between the numbers. So, only the leftmost value would be assigned to the variable.
- x = (2, 20, 200) Here ( ) has higher precedence than the comma operator, so, every value will be traversed and right- most value is returned.
Similar questions
Math,
5 months ago
Computer Science,
5 months ago
History,
11 months ago
Math,
11 months ago
Science,
1 year ago