Combine two strings into one.

In this program, we will take two strings as input and combine two strings into one.

Steps to solve the program
  1. Take two strings as inputs.
  2. Combine them using “+” operator.
  3. Print the output.
				
					#Input string
string1 = "abc"
string2 = "def"

#Printing output
print(string1 + string2)
				
			

Output :

				
					abcdef
				
			

calculate the frequency of each character in a string.

print characters at even places in a string.

Leave a Comment