May-31-2017, 12:29 PM
(May-31-2017, 12:19 PM)DeaD_EyE Wrote:Well, then, why not...{elements[0]: elements[1:] for elements in zip(...)}
{key: elements for key, *elements in zip(...)}which is Python3-ic?
And I am not sure that OP is ready for all that - he's still pretty much struggling with the basics
Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.