# from tensorflow.examples.tutorials.mnist import input_data
from tensorflow.examples.tutorials.mnist import input_data

success = False

while not success:

    try:
        print("trying download")
        mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
        print("finished assignment")
    except IOError:
        success = False
    else:
        # if there was no error
        success = True

@@ -410,8 +410,260 @@
  = True%0A
+%0Aprint('mnist.train = ' + str(mnist.train))%0Aprint('mnist.train.images = ' + str(mnist.train.images))%0Aprint('mnist.train.labels = ' + str(mnist.train.labels))%0Aprint('mnist.test = ' + str(mnist.test))%0Aprint('mnist.validation = ' + str(mnist.validation))%0A

print assigned data