diff --git a/Ben/bubble.py b/Ben/bubble.py index ec6bb98..5ee7f71 100644 --- a/Ben/bubble.py +++ b/Ben/bubble.py @@ -5,7 +5,6 @@ b = [] number_list = a.readlines() - for line in number_list: b.append(int(line)) diff --git a/Ben/igpay-atinlay.py b/Ben/igpay-atinlay.py new file mode 100644 index 0000000..5d395c6 --- /dev/null +++ b/Ben/igpay-atinlay.py @@ -0,0 +1,12 @@ +__author__ = 'ben' + +import sys + +if sys.argv[1] > 0 and sys.argv[1].isalpha(): + atinlay = sys.argv[1] + a = atinlay[0] + b = atinlay[1:] + atinlay = b+a+'ay' + print atinlay +else: + print "invalid string" \ No newline at end of file diff --git a/Ben/text.txt b/Ben/text.txt index e8a348b..7e30752 100644 --- a/Ben/text.txt +++ b/Ben/text.txt @@ -2,3 +2,14 @@ 123 789 102 +12345 +456 +100000000000 +098765 +5431 +1234 +98 +54 +12568 +9934 +8345