Add files

This commit is contained in:
trémeur 2022-07-13 14:04:53 +01:00
commit 6549deda7b
9 changed files with 1092 additions and 0 deletions

17
sponge.py Normal file
View file

@ -0,0 +1,17 @@
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))