+ 2

How to print abc*x"yz' ?

How to write print command to get abc*x"yz' as output ?

13th Feb 2017, 3:49 AM
Aditya Shah
Aditya Shah - avatar
4 Answers
+ 3
If you're only talking about using the print function just to print abc*x"yz' then that's easy. Just use triple quotes otherwise you would have to escape a character quote. print(""" abc*"yz """)
13th Feb 2017, 4:12 AM
Don
Don - avatar
+ 1
print("abc*\"yz\'")
14th Feb 2017, 1:36 AM
Avnit Sharma
Avnit Sharma - avatar
0
its easy..you just have to use a backslash \ before appliying quotes and rest as it is. Example: print("abc*x\"yz\'")
16th Feb 2017, 9:31 AM
Shivam Bhasin
Shivam Bhasin - avatar
0
print('abc*x"yz\' ')
19th Feb 2017, 11:01 AM
Uday NV
Uday NV - avatar