Sumofsquares (M) That Takes An Integer M Returns True If M Is A Sum of Squares
Sumofsquares (M) That Takes An Integer M Returns True If M Is A Sum of Squares
3. Write a Python function to get a string made of the first 2 and the last 2 chars
from a given string. If the string length is less than 2, return empty string,
otherwise return new string created.
4. Write a Python program to add 'ing' at the end of a given string (length should
be at least 3). If the given string already ends with 'ing' then add 'ly' instead. If
the string length of the given string is less than 3, leave it unchanged Sample
String : 'abc' Expected Result : 'abcing'
Sample String : 'string' Expected Result : 'stringly‘