Add ‘ing’ at the end of the string.

In this program, we will take a string as input and add ‘ing’ at the end of the string.

Steps to solve the program
  1. Take a string as input.
  2. Add ing at the end of the string using “+“.
  3. Print the output.
				
					#Input string
str1 = "xyz"

#Input string
print(str1+"ing")
				
			

Output :

				
					xyzing
				
			

check if a given string is binary or not.

add ly at the end of the string if the given string ends with ing.

Leave a Comment