str = 'Good morning\n Hello\n Good evening\n'
print(str)
#Good morning
#Hello
#Good evening
str = 'Good morning\r\n Hello\r\n Good evening\r\n'
print(str)
#Good morning
#Hello
#Good evening
--Triple quotation
str = '''Good morning
Hello
Good evening'''
print(str)
#Good morning
#Hello
#Good evening
Single quotes or double quotes Be careful as Python gets angry
Recommended Posts