Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Python - How to Print String in Next Line Easily

Here is an idea of how to split long strings into multiple lines. There are two methods - Backslash and Triple quotes. Python made handling strings easier for users. Assigning strings to a variable is accepted. That variable you can call an Object. Python treats everything as an Object.Method1: Backslash Method>>> s = "This is a test of the emergency broadcast system" \… " and it will display an



This post first appeared on ApplyBigAnalytics, please read the originial post: here

Share the post

Python - How to Print String in Next Line Easily

×

Subscribe to Applybiganalytics

Get updates delivered right to your inbox!

Thank you for your subscription

×