Thursday, April 10 2025

Header Ads

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

Define a function that can accept two strings as input and concatenate them and then print it in the console.
Define a function that can accept two strings as input and concatenate them and then print it in the console In Python
Hints:
Use + to concatenate the strings

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

printValue("3","4") #34

Leave a Comment

Powered by Blogger.