I saw this in someone’s code:

y = img_index // num_images

where img_index is a running index and num_images is 3.

When I mess around with // in IPython, it seems to act just like a division sign (i.e. one forward slash). I was just wondering if there is any reason for having double forward slashes?

5 s
5

Leave a Reply

Your email address will not be published. Required fields are marked *