Define a function that can accept two strings as input and concatenate them and then print them in the console.

Question:

Define a function that can accept two strings as input and concatenate them and then print them in the console.

Hints:

  • Use + to concatenate the strings

Solution:

def printValue(s1,s2):
	print s1+s2

printValue("3","4") #34
Code language: Python (python)

Leave a Comment