Add files
This commit is contained in:
commit
6549deda7b
9 changed files with 1092 additions and 0 deletions
17
sponge.py
Normal file
17
sponge.py
Normal 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))
|
Loading…
Add table
Add a link
Reference in a new issue