Quick Print – CSKC
Sign In

Search

siteicon
Code Learning #PYTHON#8205 Back

handling long lines

Sometimes programmers face a challenge of writing long strings, long instructions etc. Python provides a neat solution in an explicit way using \ followed by newline or in some cases implicitly like in lists.

Source Code

		 

Run Output

Sentence with all the alphabets is "The quick brown fox jumps over a lazy dog"
Sentence with all the alphabets is "The quick
brown fox jumps over a lazy dog"
[10, 20, 30, 40, 50, 60, 70, 80, 90]
Everything matches