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 from the function early. you need to collect the data you want to return in a variable.
def func1(x): returnMe = {} for (a,b) in enumerate (x): if a%2 == 0: returnMe += b.upper() else: returnMe += b.lower() return returnMe func1('Testing Testing') >>>'T'