Computer Science · Python Variable Assignment
A developer assigns values using the statement: x = y = z = 5. What will be the values of x, y, and z if he subsequently changes z = 10?
- 1x = 10, y = 5, and z = 10
- 2It raises a SyntaxError
- 3x = 5, y = 5, and z = 10✓
- 4x, y, and z all become 10
Correct answer
x = 5, y = 5, and z = 10
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length Computer Science mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Python Variable Assignment?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Python Variable Assignment