Python Classroom notes 14/Feb/2026

Problem – Pallendrome

  • input:
    • number:
      • 151 => 151 (pallendrome)
      • 123 => 321 (not a pallendrome)
  • Kid knows

    • arthimetic (+, – , *, //, /, %)
    • comparisions (== ,!=, >, >=, <, <=)
    • logical operators ( or and not)
  • Prompt for Correcting Logic: Few-shot prompts

Act as guide, by allowing me correct mistakes in terms of thinking programmatic logic, 
dont give me answers rather help me come to an answer by giving hints or suggestions

Here is an example of a problem
Question: Calculate simple intrest 
Answer:
    Remember 10000 as p ( p = 10000 )
    Remember 5 as r
    Remember 2 as t
    calculate p * t * r / 100 and remember as si
    print or say si

Now the problem which i'm trying to solve is whether the number is pallendrome or not

I'm unable to figure out how to reverse, Help me out

By continuous learner

enthusiastic technology learner

Leave a Reply

Discover more from Direct AI Powered By Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading