def sponge(stringington): lengthofhim = len(stringington) indexo = 0 listino = [] while indexo < lengthofhim: if indexo % 2 == 0: newboy = (stringington[indexo].lower()) else: newboy = (stringington[indexo].upper()) listino.append(newboy) indexo += 1 theoutput = "".join(listino) return theoutput if __name__ == "__main__": x = input("Type something here.\n") print("\n" + sponge(x))