diff options
Diffstat (limited to 'progs/a20.py')
-rw-r--r-- | progs/a20.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/progs/a20.py b/progs/a20.py new file mode 100644 index 0000000..295d10f --- /dev/null +++ b/progs/a20.py @@ -0,0 +1,3 @@ +def increment_numerics(test_list, K):
+ res = [str(int(ele) + K) if ele.isdigit() else ele for ele in test_list]
+ return res
\ No newline at end of file |