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!

This is how i do it:

a=b=c=None

Hope that helps! :)

Ah, thank you VERY much for that! :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.