I have two strings. One of them is a normal string and the other one is multiline.
a = '1'
b = """
abc
xyz
"""
This is the output that I want:
1- abc
xyz
I have tried to use a f-string:
result = f'{a}- {b}'
But it creates a new line at the beginning which I don’t want.
>Solution :
Because you have \n in the beginning of the string.
a = '1'
b = """
abc
xyz
"""
Remove that
b = """abc
xyz
"""