Python adding a newline between two strings [on hold]

By : Priya

I have two strings:

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

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

My name is


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

By : Priya

This video can help you solving your question :)
By: admin