Jan-10-2020, 09:26 AM
because Skaperen wants exactly len 2:
if len(my_elements) != 2: raise IndexError('Iterable must have 2 elements')or
assert len(my_elements) == 2, 'Iterable must have 2 elements.'
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs