0

Hi, just a quick question but I couldn't find an answer to it. Say I have 3 variables, "a", "b", and "c". I want to assign each one a value of None. The only way I know of doing this is:

a, b, c = None, None, None

Is there a way to cut it back to just one instance of None because it's the same for all? Like:

a, b, c = None

The only problem is that this returns the "Too many values to unpack" error. Thanks for any help you can give!

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by shadwickman
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.