I have a problem with a def x () in python. the Problem is "inside" it. Even though I put it right, it returns the else, no matter.
I've tried everything but I could not tell because it does not return right.
Here's the code.
def filters(a, b, c):
for a in range(1, 1):
d = "video"
else:
d = ""
for b in range(1, 1):
e = "&lclk=short"
else:
e = ""
for c in range(1, 1):
f = "&lclk=hd"
else:
f = ""
i = ("&filters=%s%s%s" % (e, d, f))
return i
Even though I put filters (1, 1, 1) it returns only the "elses". I wonder why? Ah detail that if I try for if inside the def it says "syntax error": / (it's python 2.7)