0

What if I want to print ' in the console?

8th Jul 2016, 9:03 PM
Hossein Amirkhalili
Hossein Amirkhalili - avatar
2 Réponses
+ 2
You should use a backward slash before it. \' example: print("He\'s name is Amir.")
1st Nov 2016, 9:41 AM
István János Filimon
István János Filimon - avatar
+ 1
You have to escape it. In JavaScript they use \. Maybe in Python too.
10th Jul 2016, 1:28 PM
ZinC
ZinC - avatar