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