diff options
| author | Mohammad S Anwar <mohammad.anwar@yahoo.com> | 2019-09-29 09:35:26 +0100 |
|---|---|---|
| committer | Mohammad S Anwar <mohammad.anwar@yahoo.com> | 2019-09-29 09:35:26 +0100 |
| commit | b85b95be86c1e2a250858f5c5022030470c09d02 (patch) | |
| tree | 083924fb1441582f10536d37e97d7999af11dbc9 | |
| parent | 63cb54e6fce5c7128ed5d05f94c76bc333ffaa60 (diff) | |
| parent | f3f23d24ba00ca7d7e1ccedc494c9aab9896f708 (diff) | |
| download | perlweeklychallenge-club-b85b95be86c1e2a250858f5c5022030470c09d02.tar.gz perlweeklychallenge-club-b85b95be86c1e2a250858f5c5022030470c09d02.tar.bz2 perlweeklychallenge-club-b85b95be86c1e2a250858f5c5022030470c09d02.zip | |
Merge branch 'master' of https://github.com/manwar/perlweeklychallenge-club
| -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) |
