From 9e5f31452ea9ab05732aaf92a064c297a8357937 Mon Sep 17 00:00:00 2001 From: rrishabhjain01 <53619560+rrishabhjain01@users.noreply.github.com> Date: Wed, 9 Oct 2019 23:21:14 +0530 Subject: [PATCH] Dictionary File --- test1.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test1.py diff --git a/test1.py b/test1.py new file mode 100644 index 0000000..ed6de17 --- /dev/null +++ b/test1.py @@ -0,0 +1,10 @@ +x = input('Enter a number = ') +y = len(x)-1 +z = 0 +c = int(x) +while y>=0: + a = c%10 + c = c//10 + z = z + a*(10**y) + y = y - 1 +print(z)