Bronze 2016 The Cow Signal (Code help)

I was wondering what this line of python code means? (https://usaco.guide/problems/usaco-665-the-cow-signal/solution)

print(g[i//K][j//K],end=’’)

^ What does that line of code do to print the desired amount of Xs and "."s?

Thanks!

Do you understand what it literally does? As in, what it prints out given the values of i and j?

I think yes, but what does the "i//K’ do?

Thanks!

It performs floor division.