What is automatically escaped content in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is automatically escaped content in python?

In Python course/basic concept/simple input and output/page3 there is a sentence which is:(with the contents automatically escaped) what does this mean ?!

28th Oct 2019, 3:19 PM
Amin
Amin - avatar
2 Answers
+ 3
Thank you so much for your time and consideration 😊👍💚
28th Oct 2019, 8:58 PM
Amin
Amin - avatar
+ 1
It means that escape characters, that are typed in the string like they are displayed, will get automatically escaped to escape character format. Like if you typed a new line in docstring just by pressing enter, the newline is not already in the escape character format (\n), but it will be evaluated to that when the program runs. This string: """A bicycle with wheels of 6' """ Would in runtime get evaluated to: 'A\nbicycle with wheels of 6\' '
28th Oct 2019, 3:49 PM
Seb TheS
Seb TheS - avatar