omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Can’t use triple quotes

    Pythonista
    3
    3
    690
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Old Blue Nose
      Old Blue Nose last edited by ccc

      Perhaps I am doing something wrong, but when I try to use triple quotes in a print function, get an error.
      File "<string>", line 1
      print("""howdy you all""")
      ^
      SyntaxError: invalid character in identifier

      mikael 1 Reply Last reply Reply Quote 0
      • ccc
        ccc last edited by ccc

        You have to be careful that they are up-and-down quotes and not quotes with a slight angle. On iOS devices, click and hold on the quotes keyboard button and then slide your finger to select only the up-and-down quotes.

        1 Reply Last reply Reply Quote 0
        • mikael
          mikael @Old Blue Nose last edited by

          @Old-Blue-Nose, must be something on the lines of what @ccc said, as this works fine for me:

          print("""Text""") 
          

          Good idea to turn smart quotes off in the settings.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors