The document contains code snippets from 4 different programs that perform string validation and manipulation tasks:
1) The first program defines a StringChallenge function that reverses a user-input string and returns it.
2) The second program defines a SearchingChallenge function that validates if a string is between 4-25 characters long, starts with a letter, and ends with an underscore, returning the string or "0".
3) The third program finds the longest palindrome substring in a user-input string, returning the substring or "not possible".
4) The fourth program contains unlabeled code that may perform additional string validation or manipulation tasks.
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
58 views
Coderbyte
The document contains code snippets from 4 different programs that perform string validation and manipulation tasks:
1) The first program defines a StringChallenge function that reverses a user-input string and returns it.
2) The second program defines a SearchingChallenge function that validates if a string is between 4-25 characters long, starts with a letter, and ends with an underscore, returning the string or "0".
3) The third program finds the longest palindrome substring in a user-input string, returning the substring or "not possible".
4) The fourth program contains unlabeled code that may perform additional string validation or manipulation tasks.