that's called unpacking (or iterable unpacking)
long story short - on the right side there is some data structure and values are assign to variables on the left side
in your first example
check this SO question and accepted answer
https://stackoverflow.com/questions/6967...-unpacking
there is also extended unpacking
https://www.python.org/dev/peps/pep-3132/
long story short - on the right side there is some data structure and values are assign to variables on the left side
in your first example
mnist.load_data()
shuld return tuple/list of 2 tuples/list with 2 elements each, e.g. ((1, 3), (5, 2)) (just arbitrary numbers for example) and then x_train = 1, y_train=3, x_test=5, y_test=2check this SO question and accepted answer
https://stackoverflow.com/questions/6967...-unpacking
there is also extended unpacking
https://www.python.org/dev/peps/pep-3132/
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