-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path17th.py
More file actions
42 lines (34 loc) · 817 Bytes
/
Copy path17th.py
File metadata and controls
42 lines (34 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# def getint():
# while True:
# try:
# x=int(input('enter the value: '))
# except ValueError:
# print('x is not no.')
# else:
# return x
# print(getint())
# import os
# import shutil
# path=input('Enter th path: ')
# file=os.listdir(path)
# for x in file:
# filename,extension=os.path.splitext(x)
# extension=extension[1:]
# if os.path.exists(path+'/'+extension):
# shutil.move(path+'/'+x,path+'/'+extension+'/'+x)
# else:
# os.makedirs(path+'/'+extension)
# shutil.move(path+'/'+x,path+'/'+extension+'/'+x)
num=121
sum=0
x=num
while num>0:
rem=num%10
sum=sum*10+rem
num=num//10
print(sum)
print(sum)
if x==sum:
print('this is palindrome num')
else:
print('this is not palindrone')