Browse Source

SpOnGeBoB GeNeRaToR

master
Julio Biason 4 years ago
parent
commit
e5d8fc4e43
  1. 11
      spongebob.py

11
spongebob.py

@ -0,0 +1,11 @@
import sys
from itertools import cycle
functions = cycle([str.upper, str.lower])
phrase = sys.argv[1]
for char in phrase:
func = next(functions)
print(func(char), end='')
print('')
Loading…
Cancel
Save