Accept a string and an integer K . Shift every character in the string K positions forward in the alphabet. (Assume the string contains only lowercase alphabets). If the shift goes past 'z', wrap around to 'a'.
def is_palindrome(s): return s == s[::-1] Tcs Coding Questions 2021
TCS Coding Questions 2021: Top Problems and Preparation Guide Accept a string and an integer K
: Prime number checks, GCD/LCM calculation, Armstrong numbers, and Fibonacci series generation. Mathematical Series : Identifying the cap N raised to the t h power term in complex geometric or mixed numeric series. Highly Asked Questions (2021 Samples) Tcs Coding Questions 2021