Mar-01-2018, 05:09 PM
I am trying a very basic IF loop in which i am trying to create a new variable like below
for i in range(1,16): for j in range(i,i+14): if (j > 13): { jdisplay = "j%13" } else: { jdisplay=j } print(i,j)i am not getting this right, i want the number not to exceed 13, if it is greater than 13 a new variable called jdisplay should be created and the value should be modulo division of j with 13.