This Question have no Text answers yet!

Python adding a newline between two strings [on hold]

By : Priya
Source: Stackoverflow.com
Question!

I have two strings:

str1 = "My name is"
str2 = "Priya"

Expected Output and also need to saved in a new variable:

My name is

Priya

Basically a new line between both the strings. I've tried using str1 + "\n" + str2 but it does not work.

By : Priya


Video about Python adding a newline between two strings [on hold]