Python Programs for class 8 SET 3
Python Programs for class 8 SET 3
num=int(input("Enter number:"))
wnum=num
rev=0
while(wnum>0):
dig=wnum%10
rev=rev*10+dig
wnum=wnum//10
if (num==rev):
print("Number",num,"is a palindrome!")
else:
print("Number",num,"is not a palindrome!")
ch="Y"
sum=0
while ch.upper()=="Y":
num=int(input("Enter any number :"))
sum=sum+num
ch=input("Do you wish to continue(Y,N)?:")
print("Sum of all the numbers is :",sum)
if i.islower():
lowercase = lowercase + 1