19 lines
318 B
Python
Executable file
19 lines
318 B
Python
Executable file
#!/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="")
|