From 89bf980e8cfe55390c55aeee9c7d43342217eb07 Mon Sep 17 00:00:00 2001 From: f2018A4PS0510 Date: Mon, 24 Sep 2018 18:20:30 +0530 Subject: [PATCH] This is my program --- 2018A4PS0510G.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 2018A4PS0510G.py diff --git a/2018A4PS0510G.py b/2018A4PS0510G.py new file mode 100644 index 0000000..0153511 --- /dev/null +++ b/2018A4PS0510G.py @@ -0,0 +1,6 @@ +a="2018A4PS0510G" +sum=0 +for i in range(len(a)): + if a[i].isdigit(): + sum = sum + int(a[i]) +print(sum)