-1

Ok so basically I want to define 4 separate variable by all the same value simultaneously.

Is it possible to do something along the lines of this?

a, b, c, d = 4

where all four variables separately equal 4?

Tim
  • 179
  • 1
  • 9

1 Answers1

7

Use this syntax:

a = b = c = d = 4

DEMO:

>>> a = b = c = d = 4
>>> a
4
>>> b
4
>>> c
4
>>> d
4
alecxe
  • 441,113
  • 110
  • 1,021
  • 1,148
  • oh crap, you can do that? thanks for your help I know it seems trivial. – Tim Sep 06 '13 at 20:10
  • 1
    @Timur You can [accept the answer](http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work/5235#5235) if it worked for you. – Ashwini Chaudhary Sep 06 '13 at 20:38