![]() Note how every single special character has been converted to its printed form, right down to the last NEWLINE at the end of the string between the 'up.' And closing triple quotes. #!/usr/bin/pythonparastr = 'this is a long string that is made up ofseveral lines and non-printable characters such asTAB ( t ) and they will show up that way when displayed.NEWLINEs within the string, whether explicitly given likethis within the brackets n, or just a NEWLINE withinthe variable assignment will also show up.' 'print parastrWhen the above code is executed, it produces the following result.
0 Comments
Leave a Reply. |