diff options
| author | Mohammad Sajid Anwar <Mohammad.Anwar@yahoo.com> | 2024-09-09 16:43:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-09 16:43:39 +0100 |
| commit | c6db2124bb6cb17da4c8c1710b9d13b15622a33a (patch) | |
| tree | c5a505fadf64f4dd9053be81e95edfeeda23e776 /challenge-286/packy-anderson/python/ch-1.py | |
| parent | 46383cfc46b0e61ded02d631cf6bab8b7c2d1b73 (diff) | |
| parent | 65934126c70f4a4ef87291a6e7e18d5005d3c7a6 (diff) | |
| download | perlweeklychallenge-club-c6db2124bb6cb17da4c8c1710b9d13b15622a33a.tar.gz perlweeklychallenge-club-c6db2124bb6cb17da4c8c1710b9d13b15622a33a.tar.bz2 perlweeklychallenge-club-c6db2124bb6cb17da4c8c1710b9d13b15622a33a.zip | |
Merge pull request #10806 from packy/master
Challenge 286 solutions by Packy Anderson
Diffstat (limited to 'challenge-286/packy-anderson/python/ch-1.py')
| -rwxr-xr-x | challenge-286/packy-anderson/python/ch-1.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/challenge-286/packy-anderson/python/ch-1.py b/challenge-286/packy-anderson/python/ch-1.py new file mode 100755 index 0000000000..bfe31a7b8b --- /dev/null +++ b/challenge-286/packy-anderson/python/ch-1.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python + +from random import randrange + +words = [] +with open(__file__) as fh: + words.extend(fh.read().split()) + +print(f'{ words[ randrange( len(words) ) ] }')
\ No newline at end of file |
