You can use “”” in Python to create a multi-line string as shown in the below example –
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
s = """hello world welcome to cloudaffaire""" print(s) ## Returns ## hello world ## welcome to ## cloudaffaire print(s.replace('\n',' ')) ## Returns hello world welcome to cloudaffaire |