3 Réponses
+ 4
I can see 2 easy ways out:
1) Enclose the string in double quotes, so you can use apostrophes inside.
example: "BRIAN'S MOTHER".
2)Use the "\" escape character to escape the apostrophe.
example: "BRIAN\'S MOTHER".
I very much prefer the second method, since the it doesn't matter whether you enclose it in double quotes or single quotes, it'll work fine.
+ 1
in a print statment:
print("BRIAN\'S MOTHER")
in general use \' for apestophe
0
kk