forked from WebJournal/journaldev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmultiline_string.py
More file actions
25 lines (19 loc) · 768 Bytes
/
multiline_string.py
File metadata and controls
25 lines (19 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
s = 'My Name is Pankaj.\nI am the owner of JournalDev.com\nJournalDev is a very popular website in Developers community.'
print(s)
s = """My Name is Pankaj.
I am the owner of JournalDev.com
JournalDev is a very popular website in Developers community."""
print(s)
s = ("My Name is Pankaj. "
"I am the owner of JournalDev.com and "
"JournalDev is a very popular website in Developers community.")
print(s)
s = "My Name is Pankaj. " \
"I am the owner of JournalDev.com and " \
"JournalDev is a very popular website in Developers community."
print(s)
s = ' '.join(("My Name is Pankaj. I am the owner of",
"JournalDev.com and",
"JournalDev is a very popular website",
"in Developers community."))
print(s)