Need support/please clear my doubt:
def test(strValue):
for i in range(len(strValue)):
if[ i %2==0]:
strValue.replace(strValue[i] ,strValue[i].upper())
print('if loop '+strValue)
else:
strValue.replace(strValue[i] ,strValue[i].lower())
print('else loop '+strValue)
**input:**
test('apple')
**output:**
if loop apple
if loop apple
if loop apple
if loop apple
if loop apple
1.why if[ i %2==0] is always true 2.why strValue is not changed