0
strings
completing a string containing double quotes
6 Respostas
+ 1
If you want to print.
I love programming in ''python'' always.
Then you should do. Print with single quote.
print('I love programming in ''python'' always.').
If you want to print.
I love programming in 'python' always.
Then you should do. Print with double quote.
print(''I love programming in 'python' always.'').
NB: pay attention to the quotes.
+ 1
Try this :
print('I love programming in \"python\" always')
+ 1
To get a double quotes in a string
You must first start your string with a single quotes and then include the double string inside
print(‘hello “world”!’)
>>>hello “world”!
0
i dont know
0
do you mean
print(‘ “these double quotes are now visible in my print” ‘)
?