I am a beginner in Python trying to make a function that will capitalize all of the values with an even index, and make lowercase all of the values with an odd index.
You are returning after first iteration.
return
Try the following:
def func1(x): result = '' for (a,b) in enumerate (x): if a%2 == 0: result += b.upper() else: result += b.lower() return result