1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How Can I Define Multiline String In Python

Discussion in 'Programming' started by Gabriel9999, Apr 1, 2019.

  1. Gabriel9999

    Gabriel9999 New Member

    Joined:
    Mar 12, 2019
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    How can I define multiline string Python and print to the screen? Thanks in advance for your help!
     
  2. samueltarcin9999

    samueltarcin9999 New Member

    Joined:
    Mar 12, 2019
    Messages:
    6
    Likes Received:
    4
    Trophy Points:
    3
    Well. You can use triple quotes in order to define multi line string like sss='''This is a string'''
    For more information look = poftut.com/python-string-variable-type/
     
    Gabriel9999 likes this.

Share This Page