In the loop if you notice the value of j and i is initially 0 .
You could loop using :
for i in range(0, 5): #Loop statement with proper indention
print "We're on time %d" % (x) #printing value in x
Secondly if you need to check using if condition the syntax is below :
i =11 # Some value
if i % 2 == 0: # modulus operator
print 'cannot divide'
Hope you are clear about the syntax in Python ,just give a try on online IDEs available .
Edit 1 :
Yes you can check with another variable using if condition after the for syntax.
More find at Python Doc