+ 1
Help with apostrophes in input
I’m just starting to learn, but my problem is: Input; s= input(‘Who\’s that?’) print(s) Output: Error WhoÆs that?’) among other things. Earlier in the lessons it said that you could do a \ before an apostrophe to not prematurely end the string, but i keep getting that error. If i try to do; input(“Who’s That?”) it says that the “ is an invalid character. Any help is appreciated, thank you!
1 ответ
+ 15
Kendall u r really using wrong character it is " not “ or ”. It's the straighter apostrophe. And even the single apostrophe u posted is not right. It should be the straight one - '
s = ("Who's that?")
print (s)
or
s = ('Who\'s that?')
print (s)