From 32d638a260e31f5e6fa9452e77d9f5cb2c3cd799 Mon Sep 17 00:00:00 2001 From: Akhilesh m t Date: Sun, 25 Jun 2023 16:48:46 +0530 Subject: [PATCH] Update AddTwoNum.py done some code because it was easy if there is any error please update --- coding_solutions/interview_related/AddTwoNum.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/coding_solutions/interview_related/AddTwoNum.py b/coding_solutions/interview_related/AddTwoNum.py index 8034215..566cdde 100644 --- a/coding_solutions/interview_related/AddTwoNum.py +++ b/coding_solutions/interview_related/AddTwoNum.py @@ -1 +1,8 @@ -'Solution to be add here' \ No newline at end of file +def add(x,y): + if x and y is not digit: + return None + else: + a,b = int(x), int(y) + return a + b + +