1print("Enter the array:\n")
2userInput = input().splitlines()
3print(userInput)
1# String containing newline characters
2line_str = "I'm learning Python.\nI refer to TechBeamers.com tutorials.\nIt is the most popular site for Python programmers."
3print("Long string with newlines: \n" + line_str)
4
5# Creating a multiline string
6multiline_str = """I'm learning Python.
7I refer to TechBeamers.com tutorials.
8It is the most popular site for Python programmers."""
9print("Multiline string: \n" + multiline_str)
1toname = "Peter"
2toemail = "p@tr"
3subject = "Hi"
4content = f"""From: Fromname <fromemail>
5 To: {toname} <{toemail}>
6 MIME-Version: 1.0
7 Content-type: text/html
8 Subject: {subject}
9
10 This is an e-mail message to be sent in HTML format
11
12 <b>This is HTML message.</b>
13 <h1>This is headline.</h1>
14"""