From e23ba353f7c4e8425b5cb1345a404ebcb7358a5c Mon Sep 17 00:00:00 2001 From: TusharKuwar Date: Tue, 20 Sep 2022 00:06:40 +0530 Subject: [PATCH] Challange-19 added code file Signed-off-by: TusharKuwar --- contributors/TusharKuwar/gist-solutions.md | 6 ++++-- contributors/TusharKuwar/inorder_postorder_to_tree.py | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 contributors/TusharKuwar/inorder_postorder_to_tree.py diff --git a/contributors/TusharKuwar/gist-solutions.md b/contributors/TusharKuwar/gist-solutions.md index 61e1bd635..dcf098980 100644 --- a/contributors/TusharKuwar/gist-solutions.md +++ b/contributors/TusharKuwar/gist-solutions.md @@ -1,2 +1,4 @@ -[Software Development related gist](https://gist.github.com/TusharKuwar/9b31ff11be49d2619134ff89fa3b131c) -[Code Snippet Gist](https://gist.github.com/TusharKuwar/ed66a7d620c748b35cf6e5c6ddb1a484) \ No newline at end of file +# Gist Linkes + +1: Software Development Related Topic Gist: +2: Code Snippet Gist: diff --git a/contributors/TusharKuwar/inorder_postorder_to_tree.py b/contributors/TusharKuwar/inorder_postorder_to_tree.py new file mode 100644 index 000000000..ba23d2550 --- /dev/null +++ b/contributors/TusharKuwar/inorder_postorder_to_tree.py @@ -0,0 +1,6 @@ +# return sum +n = input() +total = 0 +for ele in n: + total += int(ele) +print("Sum of digits of the number " + n + " is", total)