+ 1

How to display a string with double quotes

7th Dec 2019, 6:24 AM
Colin Joy
Colin Joy - avatar
7 Answers
+ 4
To display a string with included quotes use: print('the "Magic" of python')
7th Dec 2019, 7:47 AM
Lothar
Lothar - avatar
+ 2
It depends on your programming language
7th Dec 2019, 6:54 AM
Иван
Иван - avatar
+ 2
Either you use another set of quotes on the outside: print('Test "doubles" now!') Or you 'escape' them by marking them with a backslash. print("Another \"Test\" coming up!")
7th Dec 2019, 7:47 AM
HonFu
HonFu - avatar
+ 2
Lothar I'm going to try that now. 😁👍
7th Dec 2019, 7:48 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Print("Hello World") Or do you wish to actually display the double quotes?
7th Dec 2019, 7:42 AM
Rik Wittkopp
Rik Wittkopp - avatar
7th Dec 2019, 7:44 AM
Rik Wittkopp
Rik Wittkopp - avatar
0
Its in python language
7th Dec 2019, 6:59 AM
Colin Joy
Colin Joy - avatar