Functions that use yield are known as "generators", and generators cannot return values. Similarly, functions that use
return cannot use yield. Doing so will cause a SyntaxError.
def adder(n):
num = 0
while num < n:
yield num
num += 1
return num #Noncompliant