0
code to create string contain two quotes
4 ответов
+ 3
thanks i found the ans. and ans is. \"
+ 2
two ways to do it...
you can escape the quotes
print("My Quote: \"Inspiration comes from within \"")
or the simpler way, use different quotation marks around the string:
print('My Quote: "Inspiration comes from within" ')
+ 1
simply use triple quotes to start end end the string inside you can use any number of quotes for example
print (''' 'he quote this' 'beautiful better than ugly' ''')
- 1
yes i understand your answer...your answer perfect...thanks