Are you looking for the Answers to NPTEL Programming Data Structures And Algorithms Using Python Assignment 8? This article will help you with the answer to the National Programme on Technology Enhanced Learning (NPTEL) Course “ NPTEL Programming Data Structures And Algorithms Using Python Assignment 8 “
What is Programming Data Structures And Algorithms Using Python?
While hard skills teach us what to do, soft skills tell us how to apply our hard skills in a social environment. The focus of the course is to develop a wide variety of soft skills starting from communication, to working in different environments, developing emotional sensitivity, learning creative and critical decision making, developing awareness of how to work with and negotiate with people and to resolve stress and conflict in ourselves and others.
The uniqueness of the course lies in how a wide range of relevant issues are raised, relevant skills discussed and tips for integration provided in order to make us effective in workplace and social environments.
CRITERIA TO GET A CERTIFICATE
Average assignment score = 25% of the average of best 8 assignments out of the total 12 assignments given in the course.
Exam score = 75% of the proctored certification exam score out of 100
Final score = Average assignment score + Exam score
YOU WILL BE ELIGIBLE FOR A CERTIFICATE ONLY IF THE AVERAGE ASSIGNMENT SCORE >=10/25 AND EXAM SCORE >= 30/75. If one of the 2 criteria is not met, you will not get the certificate even if the Final score >= 40/100.
Below you can find the answers for Programming Data Structures And Algorithms Using Python Assignment 8
|Programming Data Structures Assignment 1||Click Here|
|Programming Data Structures Assignment 2||Click Here|
|Programming Data Structures Assignment 3||Click Here|
|Programming Data Structures Assignment 4||Click Here|
|Programming Data Structures Assignment 5||Click Here|
|Programming Data Structures Assignment 6||Click Here|
|Programming Data Structures Assignment 7||Click Here|
|Programming Data Structures Assignment 8||Click Here|
Programming Data Structures And Algorithms Using Python Assignment 8 Answers:-
Q1. As we all know, a palindrome is a word that equals its reverse. Here are some examples of palindromes: malayalam, gag, appa, amma.
We consider any sequence consisting of the letters of the English alphabet to be a word. So axxb,abbba and bbbccddx are words for our purpose. And aaabbaaa, abbba and bbb are examples of palindromes.
By a subword of a word, we mean a contiguous subsequence of the word. For example the subwords of the word abbba are a, b, ab, bb, ba, abb, bbb, bba, abbb, bbba and abbba.
In this task you will given a word and you must find the longest subword of this word that is also a palindrome.
For example if the given word is abbba then the answer is abbba. If the given word is abcbcabbacba then the answer is bcabbacb.
For Online programming test help and final exam preparation material Click Me
N = int(input()) word = input() ans = str() for i in range(len(word)): for j in range(len(word)-1,i-1,-1): if word[i] == word[j]: m = word[i:j+1] if m == m[::-1]: if len(ans) <= len(m): ans = m print(len(ans)) print(ans)
For other courses answers:- Visit
For Internship and job updates:- Visit
Disclaimer: We do not claim 100% surety of answers, these answers are based on our sole knowledge, and by posting these answers we are just trying to help students, so we urge do your assignment on your own.
if you have any suggestions then comment below or contact us at [email protected]
If you found this article Interesting and helpful, don’t forget to share it with your friends to get this information.
NPTEL Programming Data Structures And Algorithms Using Python Assignment 8 Answers 2022:- All the Answers provided here to help the students as a reference, You must submit your assignment at your own knowledge.