Followers

Wednesday, 16 November 2022

Program to Concatenate two strings in Python

 String is one of the important data type in Python. String is collection of characters which are enclosed in double quotes. Here we are discussing concatenating 2 strings as below:

1. Assign first string vale to variable1

2. Assign second string value to variable 2

3. Add the two string variables using " +" operator which adds second string to end of first string1

Reference of the code run in JupyterLab 




No comments:

Post a Comment