a = 'Hyd is green city' # There are 3 spaces between the words print(a . split()) # ['Hyd','is','green','city'] print(a . split(' ')) # ['Hyd','','','is','','','green ...
Write a program to append 'ing' to input string. Append 'ly' to the string if the string already ends with 'ing'.