double qoutes in python3 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

double qoutes in python3

how to print string having double qoutes

17th Feb 2019, 7:19 AM
Newera Aman
Newera Aman - avatar
1 Answer
+ 6
You can use the backslash escape character inside a double quotes string: print("An \"apple\" is a type of fruit"); Or use double quotes inside a string quoted string: print('An "apple" is a type of fruit');
17th Feb 2019, 7:30 AM
LynTon
LynTon - avatar