Why is there 3 quotes in front of customer | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why is there 3 quotes in front of customer

Quotes

20th May 2019, 8:50 PM
Mike Harris
Mike Harris - avatar
2 Answers
+ 6
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2274/ Newlines Python provides an easy way to avoid manually writing "\n" to escape newlines in a string. Create a string with three sets of quotes, and newlines that are created by pressing Enter are automatically escaped for you. >>> """Customer: Good morning. Owner: Good morning, Sir. Welcome to the National Cheese Emporium.""" 'Customer: Good morning.\nOwner: Good morning, Sir. Welcome to the National Cheese Emporium.' As you can see, the \n was automatically put in the output, where we pressed Enter.
20th May 2019, 9:04 PM
Anna
Anna - avatar
+ 3
what 3 quotes??? can't see anything
20th May 2019, 8:56 PM
✳AsterisK✳
✳AsterisK✳ - avatar