- 2

Having serious trouble, cant enter more than 2 characters for the create a string containing double quotes. Anyone else?

27th Oct 2016, 10:30 PM
Erin
Erin - avatar
5 ответов
+ 2
s1 = 'first string with " :)' # single quotes s2 = "second string with \" :)" # backslash escape the special symbol s3 = """third string with " :)""" # triple quotes - multiline string
27th Oct 2016, 10:47 PM
Антон Лазовский
Антон Лазовский - avatar
+ 2
This excercise wants you to practice applying double quotes in a double quote string. However, this cannot be achieved without first typing a backlash (\) before the double quote sign. So to answer this question, you only need two characters: backslash followed by double quotes. Your answer should look something like this: \"
28th Oct 2016, 10:01 PM
Jui Apte
Jui Apte - avatar
+ 2
It just wants you to add another double quote without prematurely ending the string. Which the backslash followed by a double quote allows. No other characters are necessary.
30th Oct 2016, 7:34 AM
Joshua Jinsung Noh
Joshua Jinsung Noh - avatar
+ 1
I have no idea what you are trying to ask
28th Oct 2016, 8:34 AM
Linus Izthebest
Linus Izthebest - avatar
+ 1
Same issue here
31st Oct 2016, 6:38 PM
Andrew K. Kabaghe
Andrew K. Kabaghe - avatar