Timely commit
This commit is contained in:
parent
8d85bd63da
commit
6cdd924613
4 changed files with 98 additions and 2 deletions
18
config/scripts/spongebob
Executable file
18
config/scripts/spongebob
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
import random
|
||||
|
||||
# maj = True
|
||||
|
||||
for line in sys.stdin:
|
||||
new_line = ""
|
||||
for c in line:
|
||||
maj = random.random() > 0.5
|
||||
if maj:
|
||||
nc = c.upper()
|
||||
else:
|
||||
nc = c.lower()
|
||||
new_line += nc
|
||||
# maj = not maj
|
||||
print(new_line, end="")
|
Loading…
Add table
Add a link
Reference in a new issue