Technical Publications

Write a python program that accepts a string from user and perform following string operations – i) Calculate length of string ii) String reversal. iii) Equality check of two strings iv) Check palindrome v) Check substring. Solution : def str_len(str): len = 0. for i in str: len = len+1. return len. def str_rev(str): return str[::-1] ................
................