Skip to content

Commit b7ff59c

Browse files
author
Bernardas Ališauskas
committed
add memestring
1 parent 0b3fa92 commit b7ff59c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

meme-string

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env python
2+
import click
3+
import random
4+
5+
6+
@click.command()
7+
@click.argument('text')
8+
def main(text):
9+
new = ''
10+
for char in text:
11+
if random.randint(0, 1):
12+
new += char.upper()
13+
else:
14+
new += char
15+
click.echo(new)
16+
17+
18+
if __name__ == '__main__':
19+
main()

0 commit comments

Comments
 (0)