Course Content

Python Problem 4 | Python Tutorials For Absolute Beginners In Hindi #109

The task you have to perform is “The Next Palindrome.” This task consists of a total of 15 points to evaluate your performance.

Problem Statement:-

A palindrome is a string that, when reversed, is equal to itself. Example of the palindrome includes:

676, 616, mom, 100001.

You have to take a number as an input from the user. You have to find the next palindrome corresponding to that number. Your first input should be the number of test cases and then take all the cases as input from the user.

Input:

3

451

10

2133

Output:

Next palindrome for 451 is 454

Next palindrome for 10 is 11

Next palindrome for 2311 is 2222

These tasks will improve your logic making skills and logic is the basics of programming. The solution is discussed in tutorial#110

 

Comments(2)

mdsumon34 3 months, 4 weeks ago
good
mdsumon34 3 months, 4 weeks ago
yr7yr

Resources

No downloadable resources for this video. If you think you need anything, please post it in the QnA!

Course Announcements

Any Course related announcements will be posted here