[ACCEPTED]-write a paragraph to a file-python

Accepted answer
Score: 18
f.write("""I’ve got a lovely bunch of coconuts
There they are all standing in a row
Big ones, small ones, some as big as your head
Give them a twist a flick of the wrist
That’s what the showman said""")

0

Score: 3

You can use the 3 quote string declaration 1 like so.

>>> a = '''blah blah blah blah
blah blah blah blah
blah blah blah blah'''
>>> print(a)
blah blah blah blah
blah blah blah blah
blah blah blah blah

More Related questions