How to make oneline string into new rows?

59 Views Asked by At

s_n = ("Bob: Hello Sandy: How are you? Bob: Confused by a python problem"

print(s_n)

i want to make this string in multiple lines without using "\n".

Output to be : Bob:

           Hello Sandy:

            How are you? ...etc 
1

There are 1 best solutions below

2
Kerim Yagmurcu On
s_n = ("""Bob: Hello

Sandy: How are you? Bob: Confused by a python problem""""

print(s_n)

Output: Bob: Hello Sandy: How are you? Bob: confused by a python problem