Palindrome

, , 81 Comments

#!/usr/bin/python3

number = input('Enter number ')

step = 0
sum = 0

fwd = int(number)
rev = int(number[::-1])

if fwd == rev:
    print ('poly')
    sum = number
else:
    while fwd != rev:
        sum = fwd + rev
        fwd = str(sum)
        rev = int(fwd[::-1])
        fwd = int(fwd)
        step += 1

print (step)
print (sum)
 

81 Responses

  1. JosephGog

    September 4, 2020 8:49 am

    A new company in which over half a year more than 9 million people https://crowd1.com/signup/tatyanaflorida have registered. Profit comes from the shares of the world’s largest gaming channels. Gambling, mobile share with us 50%. Passive and active income. Viber/WhatsApp +12487304178 Skype tatyana.kondratyeva2

  2. MSNYCinift

    September 9, 2020 4:14 pm

    The cleansing firm carries out cleansing of spaces of various sizes and arrangements.

    The company’s specialists supply cleansing with the help of modern innovations, have unique equipment, and additionally have actually accredited cleaning agents in their arsenal. In addition to the above advantages, glass of wines use: favorable prices; cleaning in a short time; premium quality outcomes; more than 100 positive reviews. Cleaning up offices will certainly help maintain your office in order for the most effective work. Any business is incredibly essential environment in the group. Cleaning services that can be gotten cheaply currently can aid to prepare it as well as give a comfortable area for labor.

    If required, we leave cleaning the kitchen 2-3 hrs after placing the order. You obtain cleaning up immediately.

    We provide specialist maid service for private customers. Making use of European devices and licensed devices, we achieve maximum results as well as supply cleansing in a short time.

    We provide discount rates for those who utilize the solution for the first time, in addition to favorable regards to teamwork for regular clients.

    Our friendly group uses you to obtain familiarized with favorable regards to teamwork for business customers. We properly approach our activities, tidy using specialist cleansing items and customized equipment. Our employees are trained, have clinical publications and are familiar with the nuances of getting rid of facility as well as hard-to-remove dirt from surfaces.

    We supply high-grade cleansing for big business as well as little companies of various instructions, with a discount of as much as 25%.

  3. MSNYCinift

    September 12, 2020 5:53 am

    The cleansing firm carries out cleaning of areas of different dimensions and arrangements.

    The firm’s experts give cleaning up with the assistance of contemporary technologies, have unique tools, and also have licensed cleaning agents in their toolbox. Along with the above advantages, glass of wines use: desirable rates; cleansing quickly; premium quality results; greater than 100 positive reviews. Cleaning workplaces will certainly aid maintain your workplace in order for the most productive job. Any company is very crucial ambience in the team. Cleaning solutions that can be purchased cheaply currently can help to arrange it as well as give a comfy space for labor.

    If required, we leave cleaning up the kitchen area 2-3 hrs after putting the order. You get cleansing asap.

    We offer expert maid service manhattan for exclusive customers. Utilizing European devices and licensed tools, we accomplish optimal outcomes as well as provide cleansing in a short time.

    We provide discount rates for those who make use of the service for the very first time, in addition to favorable terms of collaboration for routine customers.

    Our pleasant team uses you to obtain familiarized with beneficial regards to collaboration for company customers. We sensibly approach our tasks, tidy utilizing professional cleaning items and specific tools. Our employees are educated, have medical publications and know with the nuances of eliminating complex and also hard-to-remove dirt from surface areas.

    We give top quality cleaning for huge enterprises and also small firms of different directions, with a discount of up to 25%.

  4. cialis buy

    September 22, 2020 4:38 pm

    Should sexual life be avoided for the lumbar spine stenosis.
    What the drug is made of.
    If a drug can be both wonderful usually and dangerous sometimes , taking away the expertise in its administration is likely to make it dangerous often.

Leave a Reply