livepython.net

19. Python Program to Assign One Value to Several Variables

EasyHow they work

Overview

Practice assigning values to multiple variables.

Problem Statement

Assign the same value to three variables in one line.

Constraints:

  • Assign value 10 to x, y, and z simultaneously
  • Print all three variables
  • Use chained assignment

Input

  • No input required

Output

10 10 10

Learn this firstChapter 4 · How Python Variables Work: Reassign, Swap and More
solution.py
# write your code here

EXPECTED OUTPUT

110 10 10

YOUR OUTPUT

Press Run to see your output here. Lines are compared with the expected output.