string with double quotation marks | SoloLearn: Learn to code for FREE!

0

string with double quotation marks

How do I print string with double quotation marks?

5/20/2020 7:23:21 PM

Steve Biko

2 Answers

New Answer

+4

Much like 𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 said, you can either use a single quotation mark or escape the double one with the backslash "\". Refresh the lesson here about character escaping: https://www.sololearn.com/learn/Python/2274/

+3

Steve Biko Use this 👇👇👇 print('"Kiibo Ghayal"') or print("\"Kiibo Ghayal\"")