if y<x:
print “domain error”
elif str(y) is 0:
print “y cannot be zero”
else:
print "domain set between “+str(int(x))+” and "+str(int(y))
countOffRange = range(int(x),int(y))
if z>(y-x):
for i in countOffRange:
i = range(0,int(z))+int(x):
print "test range "+str(i)
else:
for i in countOffRange:
print "test range "+str(i)
#make while loop so that if the range between x and y is less than z then #wrap values until the count off is equal to z
@youngjaechung Could you post your code in a code block like this:
```
<code>
```
Python has meaningful indentation, so stripping them out leads to ambiguity and syntax errors.
A few comments:
compares a string to an integer, and always evaluates to false. Also, use the == operator to test for equality, not is, which can give you unexpected results.
No idea what this is supposed to do, but you shouldn’t be modifying your counter variable within the loop… also a syntax error due to the colon at the end of the line.