diff options
| author | Mohammad S Anwar <Mohammad.Anwar@yahoo.com> | 2019-09-29 09:32:23 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-29 09:32:23 +0100 |
| commit | f3f23d24ba00ca7d7e1ccedc494c9aab9896f708 (patch) | |
| tree | 0e7a986a1ef7bc10dcacb9bac997a14a42668d58 | |
| parent | 6d1910afd271caaac2fd6c601cdf7850dc858451 (diff) | |
| parent | d21597a12fa8a3186cd70c3352927f6724170b6b (diff) | |
| download | perlweeklychallenge-club-f3f23d24ba00ca7d7e1ccedc494c9aab9896f708.tar.gz perlweeklychallenge-club-f3f23d24ba00ca7d7e1ccedc494c9aab9896f708.tar.bz2 perlweeklychallenge-club-f3f23d24ba00ca7d7e1ccedc494c9aab9896f708.zip | |
Merge pull request #678 from kolcon/master
Put both files when I already added the Python folder...
| -rw-r--r-- | challenge-027/lubos-kolouch/python/ch27_2.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/challenge-027/lubos-kolouch/python/ch27_2.py b/challenge-027/lubos-kolouch/python/ch27_2.py new file mode 100644 index 0000000000..2eaa72cf07 --- /dev/null +++ b/challenge-027/lubos-kolouch/python/ch27_2.py @@ -0,0 +1,13 @@ +#! python3 + +import sys + +what = 'x=10;x+=20;x-=5' + +history = [] + +for a in what.split(";"): + exec(a) + history.append(x) + +print(history) |
