1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
4vir4ik [10]
2 years ago
15

Please code in python and add comments to code

Computers and Technology
1 answer:
Gnoma [55]2 years ago
4 0

#accepting input from user

n=int(input("Enter a number: "))

#entered number is stored in a temporary variable

temp=n

#initializng required variables

rev=0

dgt=0

#digits are reversed inside while loop

while(n>0):

dgt=n%10

rev=rev*10+dgt

n=n//10

#original number and its reverse are compared

if(temp==rev):

#if equal, it's a palindrome

print("It is a Palindrome")

else:

#if not equal, it's not a palindrome

print("It is not a Palindrome")

#◌⑅⃝●♡⋆♡Nåmřāthā♡⋆♡●⑅◌

You might be interested in
A + B (AC (B +C’) D) = A + BD
zmey [24]
Yo what is that i’m confused
5 0
3 years ago
Read 2 more answers
Why do people post about family problems?
kvv77 [185]

Answer:

Some people go through things either traumatizing or painful to them emotionally/mentally past or future. They seek comfort or a feeling thatll make them feel safe for a moment and have comfort from the fear of what may be outside there door wherther its abuse mentally or physically.

4 0
3 years ago
Which best describes the benefits of renting a home?
Slav-nsk [51]
<span>The benefits of renting a home are many. Renting can be less expensive, for example, your rent might even cover utilities. If a person moves frequently or may not be planning on staying in the area, renting is beneficial because they can just leave when the lease is up instead of having to sell a home. Frequently, the owner of the property is responsible for many repairs - such as plumbing and electric work. There is also less care involved when renting apartments or condos because the management will take care of things like the landscaping and repairing driveways.</span>
7 0
3 years ago
So, my school's account has been blocked, I can't get in and it tells me to contact and admin. I don't know why it happened, I'm
earnstyle [38]
This happened to me a while back. If you can’t find a contact to admin try emailing one of your teachers. My teacher told admin and then they fixed it.
8 0
3 years ago
You don't have to answer them all, just give me 2 or 3. Thanks
frozen [14]

Answer:

5. iOS and Android are some popular OS’.

Explanation:

4 0
3 years ago
Other questions:
  • A byte in memory is identified by a unique number called its
    8·1 answer
  • A(n) _____ is a common output device for hard copy.
    9·1 answer
  • Okay so, not really a question but whatever it’s been bothering me.
    9·2 answers
  • A server provides the necessary IP configuration to your network host so the host can communicate on the network. If this servic
    7·1 answer
  • You have received a "no boot device found" notification upon booting your system. what does this mean, and what can you do to tr
    12·1 answer
  • Most Muslims are Sunni Muslims; however, the Shiites are a forceful minority in some parts of the Middle East. The Sunni-Shiite
    13·1 answer
  • A collection of realated files is called a
    12·1 answer
  • What is a computer and what is the work of it​
    5·2 answers
  • Which of the following scenarios describes an IT professional using the Internet and computer system access in an unprofessional
    7·1 answer
  • An agile team has which two characteristics? (choose two. ).
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!