CoCalc Shared Filesrules.json
Views : 12
1[{"quizzes": [{"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with quotes.", "question": "Is this a valid string?\n\"Mary\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>Mary\"<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"Mary<span class=\"highlight\">\"</span><br/>Because <span class=\"highlight\">\"</span> is \" we know this is a valid string."]}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with quotes.", "question": "Is this a valid string?\n\"boat\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>boat\"<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"boat<span class=\"highlight\">\"</span><br/>Because <span class=\"highlight\">\"</span> is \" we know this is a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with quotes.", "question": "Is this a valid string?\n\"Mary", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>Mary<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"Mar<span class=\"highlight\">y</span><br/>Because <span class=\"highlight\">y</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start and end with quotes and it has to.", "question": "Is this a valid string?\nboat", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">b</span>oat<br/>Because <span class=\"highlight\">b</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start and end with quotes and it has to.", "question": "Is this a valid string?\npizza", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">p</span>izza<br/>Because <span class=\"highlight\">p</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start and end with quotes and it has to.", "question": "Is this a valid string?\nGreg", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">G</span>reg<br/>Because <span class=\"highlight\">G</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start and end with quotes and it has to.", "question": "Is this a valid string?\nspace ship", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">s</span>pace ship<br/>Because <span class=\"highlight\">s</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with quotes.", "question": "Is this a valid string?\n\"David", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>David<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"Davi<span class=\"highlight\">d</span><br/>Because <span class=\"highlight\">d</span> is not \" we know this is not a valid string."]}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with quotes.", "question": "Is this a valid string?\n\"Greg\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>Greg\"<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"Greg<span class=\"highlight\">\"</span><br/>Because <span class=\"highlight\">\"</span> is \" we know this is a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start with quotes.", "question": "Is this a valid string?\nspace ship\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">s</span>pace ship\"<br/>Because <span class=\"highlight\">s</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start with quotes.", "question": "Is this a valid string?\nKevin\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">K</span>evin\"<br/>Because <span class=\"highlight\">K</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start and end with quotes and it has to.", "question": "Is this a valid string?\n2 is prime", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">2</span> is prime<br/>Because <span class=\"highlight\">2</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with quotes.", "question": "Is this a valid string?\n\"space ship", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>space ship<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"space shi<span class=\"highlight\">p</span><br/>Because <span class=\"highlight\">p</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with quotes.", "question": "Is this a valid string?\n\"pizza", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>pizza<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"pizz<span class=\"highlight\">a</span><br/>Because <span class=\"highlight\">a</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with quotes.", "question": "Is this a valid string?\n\"The world wide web is awesome.", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>The world wide web is awesome.<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"The world wide web is awesome<span class=\"highlight\">.</span><br/>Because <span class=\"highlight\">.</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start and end with quotes and it has to.", "question": "Is this a valid string?\ncar", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">c</span>ar<br/>Because <span class=\"highlight\">c</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with quotes.", "question": "Is this a valid string?\n\"2 is prime", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>2 is prime<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"2 is prim<span class=\"highlight\">e</span><br/>Because <span class=\"highlight\">e</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start and end with quotes and it has to.", "question": "Is this a valid string?\nDavid", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">D</span>avid<br/>Because <span class=\"highlight\">D</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start and end with quotes and it has to.", "question": "Is this a valid string?\nThe world wide web is awesome.", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">T</span>he world wide web is awesome.<br/>Because <span class=\"highlight\">T</span> is not \" we know this is not a valid string."]}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with quotes.", "question": "Is this a valid string?\n\"Kevin\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>Kevin\"<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"Kevin<span class=\"highlight\">\"</span><br/>Because <span class=\"highlight\">\"</span> is \" we know this is a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start with quotes.", "question": "Is this a valid string?\nGreg\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">G</span>reg\"<br/>Because <span class=\"highlight\">G</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start and end with quotes and it has to.", "question": "Is this a valid string?\nSage", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">S</span>age<br/>Because <span class=\"highlight\">S</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start and end with quotes and it has to.", "question": "Is this a valid string?\nBob", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">B</span>ob<br/>Because <span class=\"highlight\">B</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start with quotes.", "question": "Is this a valid string?\npizza\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">p</span>izza\"<br/>Because <span class=\"highlight\">p</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with quotes.", "question": "Is this a valid string?\n\"car", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>car<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"ca<span class=\"highlight\">r</span><br/>Because <span class=\"highlight\">r</span> is not \" we know this is not a valid string."]}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with quotes.", "question": "Is this a valid string?\n\"2 is prime\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>2 is prime\"<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"2 is prime<span class=\"highlight\">\"</span><br/>Because <span class=\"highlight\">\"</span> is \" we know this is a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with quotes.", "question": "Is this a valid string?\n\"Greg", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>Greg<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"Gre<span class=\"highlight\">g</span><br/>Because <span class=\"highlight\">g</span> is not \" we know this is not a valid string."]}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with quotes.", "question": "Is this a valid string?\n\"car\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>car\"<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"car<span class=\"highlight\">\"</span><br/>Because <span class=\"highlight\">\"</span> is \" we know this is a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start with quotes.", "question": "Is this a valid string?\n2 is prime\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">2</span> is prime\"<br/>Because <span class=\"highlight\">2</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start with quotes.", "question": "Is this a valid string?\nBob\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">B</span>ob\"<br/>Because <span class=\"highlight\">B</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start and end with quotes and it has to.", "question": "Is this a valid string?\nMary", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">M</span>ary<br/>Because <span class=\"highlight\">M</span> is not \" we know this is not a valid string."]}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with quotes.", "question": "Is this a valid string?\n\"Bob\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>Bob\"<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"Bob<span class=\"highlight\">\"</span><br/>Because <span class=\"highlight\">\"</span> is \" we know this is a valid string."]}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with quotes.", "question": "Is this a valid string?\n\"Sage\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>Sage\"<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"Sage<span class=\"highlight\">\"</span><br/>Because <span class=\"highlight\">\"</span> is \" we know this is a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with quotes.", "question": "Is this a valid string?\n\"Bob", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>Bob<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"Bo<span class=\"highlight\">b</span><br/>Because <span class=\"highlight\">b</span> is not \" we know this is not a valid string."]}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with quotes.", "question": "Is this a valid string?\n\"pizza\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>pizza\"<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"pizza<span class=\"highlight\">\"</span><br/>Because <span class=\"highlight\">\"</span> is \" we know this is a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start with quotes.", "question": "Is this a valid string?\nThe world wide web is awesome.\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">T</span>he world wide web is awesome.\"<br/>Because <span class=\"highlight\">T</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with quotes.", "question": "Is this a valid string?\n\"Kevin", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>Kevin<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"Kevi<span class=\"highlight\">n</span><br/>Because <span class=\"highlight\">n</span> is not \" we know this is not a valid string."]}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with quotes.", "question": "Is this a valid string?\n\"David\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>David\"<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"David<span class=\"highlight\">\"</span><br/>Because <span class=\"highlight\">\"</span> is \" we know this is a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with quotes.", "question": "Is this a valid string?\n\"boat", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>boat<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"boa<span class=\"highlight\">t</span><br/>Because <span class=\"highlight\">t</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start and end with quotes and it has to.", "question": "Is this a valid string?\nKevin", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">K</span>evin<br/>Because <span class=\"highlight\">K</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start with quotes.", "question": "Is this a valid string?\nSage\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">S</span>age\"<br/>Because <span class=\"highlight\">S</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with quotes.", "question": "Is this a valid string?\n\"Sage", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>Sage<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"Sag<span class=\"highlight\">e</span><br/>Because <span class=\"highlight\">e</span> is not \" we know this is not a valid string."]}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with quotes.", "question": "Is this a valid string?\n\"The world wide web is awesome.\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>The world wide web is awesome.\"<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"The world wide web is awesome.<span class=\"highlight\">\"</span><br/>Because <span class=\"highlight\">\"</span> is \" we know this is a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start with quotes.", "question": "Is this a valid string?\nMary\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">M</span>ary\"<br/>Because <span class=\"highlight\">M</span> is not \" we know this is not a valid string."]}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with quotes.", "question": "Is this a valid string?\n\"space ship\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>space ship\"<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"space ship<span class=\"highlight\">\"</span><br/>Because <span class=\"highlight\">\"</span> is \" we know this is a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start with quotes.", "question": "Is this a valid string?\nboat\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">b</span>oat\"<br/>Because <span class=\"highlight\">b</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start with quotes.", "question": "Is this a valid string?\nDavid\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">D</span>avid\"<br/>Because <span class=\"highlight\">D</span> is not \" we know this is not a valid string."]}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't start with quotes.", "question": "Is this a valid string?\ncar\"", "step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">c</span>ar\"<br/>Because <span class=\"highlight\">c</span> is not \" we know this is not a valid string."]}], "explanation": "If you don't put quotes around your string you will either get the error \"NameError: name '[ what you put in]' is not defined\" or \"SyntaxError: invalid syntax\"", "rule": "A string must start and end with quotes", "examples": [{"step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>apple\"<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"apple<span class=\"highlight\">\"</span><br/>Because <span class=\"highlight\">\"</span> is \" we know this is a valid string."], "is_correct": true, "example": "\"apple\""}, {"step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">a</span>pple<br/>Because <span class=\"highlight\">a</span> is not \" we know this is not a valid string."], "is_correct": false, "example": "apple\nThe error shown is NameError: name 'apple' is not defined"}, {"step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>apple<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"appl<span class=\"highlight\">e</span><br/>Because <span class=\"highlight\">e</span> is not \" we know this is not a valid string."], "is_correct": false, "example": "\"apple\nThe error shown is SyntaxError: invalid syntax"}, {"step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">a</span>pple\"<br/>Because <span class=\"highlight\">a</span> is not \" we know this is not a valid string."], "is_correct": false, "example": "apple\"\nThe error shown is SyntaxError: invalid syntax"}, {"step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>apple sauce\"<br/>Because <span class=\"highlight\">\"</span> is \" we go onto step #2.", "Step two is to ask, \"is the last character a doublequote?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"apple sauce<span class=\"highlight\">\"</span><br/>Because <span class=\"highlight\">\"</span> is \" we know this is a valid string."], "is_correct": true, "example": "\"apple sauce\""}, {"step_by_step_why": ["Step one is to ask, \"is the first character a doublequote?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">a</span>pple sauce<br/>Because <span class=\"highlight\">a</span> is not \" we know this is not a valid string."], "is_correct": false, "example": "apple sauce\nThe error shown is SyntaxError: invalid syntax"}], "procedure_for_the_quizzes": ["Is the first character a \"? If not then this is not a valid string.", "Is the last character a \"? If not then this is not a valid string."], "is_complete": false}, {"quizzes": [{"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with '.", "question": "Is this a valid string?\n'David'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with '.", "question": "Is this a valid string?\n'The world wide web is awesome.\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with \".", "question": "Is this a valid string?\n\"Greg\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with '.", "question": "Is this a valid string?\n'pizza'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with \".", "question": "Is this a valid string?\n\"boat'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with \".", "question": "Is this a valid string?\n\"Bob\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with '.", "question": "Is this a valid string?\n'Greg'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with '.", "question": "Is this a valid string?\n'Sage\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with '.", "question": "Is this a valid string?\n'boat'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with '.", "question": "Is this a valid string?\n'pizza\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with \".", "question": "Is this a valid string?\n\"David\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with \".", "question": "Is this a valid string?\n\"space ship'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with \".", "question": "Is this a valid string?\n\"boat\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with \".", "question": "Is this a valid string?\n\"Mary\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with \".", "question": "Is this a valid string?\n\"car'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with \".", "question": "Is this a valid string?\n\"pizza\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with \".", "question": "Is this a valid string?\n\"Bob'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with '.", "question": "Is this a valid string?\n'car'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with '.", "question": "Is this a valid string?\n'2 is prime'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with \".", "question": "Is this a valid string?\n\"Sage\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with \".", "question": "Is this a valid string?\n\"space ship\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with '.", "question": "Is this a valid string?\n'Mary'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with '.", "question": "Is this a valid string?\n'Kevin\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with \".", "question": "Is this a valid string?\n\"Sage'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with \".", "question": "Is this a valid string?\n\"Kevin'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with '.", "question": "Is this a valid string?\n'Greg\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with \".", "question": "Is this a valid string?\n\"David'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with \".", "question": "Is this a valid string?\n\"pizza'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with '.", "question": "Is this a valid string?\n'space ship\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with '.", "question": "Is this a valid string?\n'boat\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with \".", "question": "Is this a valid string?\n\"car\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with '.", "question": "Is this a valid string?\n'Bob'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with '.", "question": "Is this a valid string?\n'space ship'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with quotes.", "question": "Is this a valid string?\n\"2 is prime\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with \".", "question": "Is this a valid string?\n\"Mary'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with \".", "question": "Is this a valid string?\n'2 is prime\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with '.", "question": "Is this a valid string?\n'car\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with '.", "question": "Is this a valid string?\n'Bob\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with \".", "question": "Is this a valid string?\n\"Greg'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with '.", "question": "Is this a valid string?\n'Mary\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with '.", "question": "Is this a valid string?\n'Kevin'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with \".", "question": "Is this a valid string?\n\"2 is prime'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with \".", "question": "Is this a valid string?\n\"The world wide web is awesome.'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with \".", "question": "Is this a valid string?\n\"Kevin\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the string starts and ends with '.", "question": "Is this a valid string?\n'David\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with '.", "question": "Is this a valid string?\n'The world wide web is awesome.'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with \".", "question": "Is this a valid string?\n\"The world wide web is awesome.\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the string doesn't end with '.", "question": "Is this a valid string?\n'Sage'"}], "explanation": "If you don't end your string with the type of quotes the string starts with you'll get the error \"SyntaxError: EOL while scanning string literal\"", "rule": "If a string starts with double quotes \" then it must end with double quotes. If it starts with single quotes it must end with single quotes.", "examples": [{"step_by_step_why": ["For this rule there's only one step. Ask is the first character, either a \" or a ', the same as the last character, either a \" or a '? If not then it's not a valid string.<br/>First character \" is equal to the last character \""], "is_correct": true, "example": "\"apple\""}, {"step_by_step_why": ["For this rule there's only one step. Ask is the first character, either a \" or a ', the same as the last character, either a \" or a '? If not then it's not a valid string.<br/>First character \" is not equal to the last character '"], "is_correct": false, "example": "\"apple'"}, {"step_by_step_why": ["For this rule there's only one step. Ask is the first character, either a \" or a ', the same as the last character, either a \" or a '? If not then it's not a valid string.<br/>First character \" is equal to the last character \""], "is_correct": true, "example": "'apple'"}, {"step_by_step_why": ["For this rule there's only one step. Ask is the first character, either a \" or a ', the same as the last character, either a \" or a '? If not then it's not a valid string.<br/>First character ' is not equal to the last character \""], "is_correct": false, "example": "'apple\""}], "procedure_for_the_quizzes": ["Is the first character, either a \" or a ', the same as the last character, either a \" or a '? If not then it's not a valid string."], "is_complete": false}, {"quizzes": [{"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nDavid"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n2 is prime'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nGreg"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"Kevin\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nboat"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nSage"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"pizza'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'pizza\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\ncar"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nBob"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nKevin"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\npizza"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nspace ship\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nThe world wide web is awesome.\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n2 is prime\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nspace ship'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nDavid'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"Bob"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'space ship"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nboat'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"Greg"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nBob\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'Mary"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'Sage"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"Bob'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'Bob\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nGreg'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nDavid\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"Sage'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\npizza'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'2 is prime"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"Bob\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"car'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'2 is prime'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nThe world wide web is awesome."}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n2 is prime"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"David'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"Kevin'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'car"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'boat'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"The world wide web is awesome."}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"boat\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'Kevin"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'pizza'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nMary'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"Sage\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'space ship'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"2 is prime\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"boat"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'Greg'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\ncar\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'The world wide web is awesome."}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"The world wide web is awesome.'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"The world wide web is awesome.\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nGreg\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'Bob'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'boat"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nboat\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"David"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"2 is prime'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nMary\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\ncar'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"car"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'Bob"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'Kevin\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"space ship'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nSage'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nSage\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'Sage'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'pizza"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'Greg"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"space ship\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"pizza\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"car\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nBob'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'Mary'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'David"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'2 is prime\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nKevin'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'Greg\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'Mary\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"Greg\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'Sage\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"Kevin"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'David\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"Mary'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\npizza\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nKevin\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nspace ship"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"Mary\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'The world wide web is awesome.'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"Greg'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'car\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'space ship\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"Sage"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'Kevin'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'David'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nMary"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"2 is prime"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"boat'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'car'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\nThe world wide web is awesome.'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'boat\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"space ship"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n'The world wide web is awesome.\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"David\""}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"pizza"}, {"answer": "No", "answer_choices": ["Yes", "No"], "question": "Is this a valid string?\n\"Mary"}], "explanation": "If you don't end your string with the type of quotes the string starts with you'll get the error \"SyntaxError: EOL while scanning string literal\"", "rule": "A string must start and end with quotes. If a string starts with double quotes \" then it must end with double quotes. If it starts with single quotes it must end with single quotes.", "examples": [{"step_by_step_why": ["Step one is to ask, \"is the first character a quote at all?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>apple\"<br/>Because <span class=\"highlight\">\"</span> is \" or ' we go onto step #2.", "Step two is to ask, \"is the last character the same as the first character?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"apple<span class=\"highlight\">\"</span><br/>Because <span class=\"highlight\">\"</span> is \" we know this is a valid string."], "is_correct": true, "example": "\"apple\""}, {"step_by_step_why": ["Step one is to ask, \"is the first character a quote at all?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">a</span>pple\"<br/>Because <span class=\"highlight\">a</span> is not \" or ' we know this is not a valid string."], "is_correct": false, "example": "apple\""}, {"step_by_step_why": ["Step one is to ask, \"is the first character a quote at all?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>apple<br/>Because <span class=\"highlight\">\"</span> is \" or ' we go onto step #2.", "Step two is to ask, \"is the last character the same as the first character?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"appl<span class=\"highlight\">e</span><br/>Because <span class=\"highlight\">e</span> is not \" we know this is not a valid string."], "is_correct": false, "example": "\"apple"}, {"step_by_step_why": ["Step one is to ask, \"is the first character a quote at all?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">\"</span>apple'<br/>Because <span class=\"highlight\">\"</span> is \" or ' we go onto step #2.", "Step two is to ask, \"is the last character the same as the first character?\" If not then this is not a valid string.<br/>The string with the last character highlighted: \"apple<span class=\"highlight\">'</span><br/>Because <span class=\"highlight\">'</span> is not \" we know this is not a valid string."], "is_correct": false, "example": "\"apple'"}, {"step_by_step_why": ["Step one is to ask, \"is the first character a quote at all?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">'</span>apple'<br/>Because <span class=\"highlight\">'</span> is \" or ' we go onto step #2."], "is_correct": true, "example": "'apple'"}, {"step_by_step_why": ["Step one is to ask, \"is the first character a quote at all?\" If not then this is not a valid string.<br/>The string with the first character highlighted: <span class=\"highlight\">'</span>apple\"<br/>Because <span class=\"highlight\">'</span> is \" or ' we go onto step #2."], "is_correct": false, "example": "'apple\""}], "procedure_for_the_quizzes": ["Is the first character a \" or '? If not then this is not a valid string.", "Is the last character the same as the same character? If not then the string is not valid."], "is_complete": false}, {"procedure_for_the_quizzes": ["Note what the first character is.", "Look for the first character in the rest of the string. If it is there before the end and there's not a \\ in front of it then the string is not valid."], "quizzes": [{"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the single quote inside the string is escaped, meaning it has an \\ in front of it.", "question": "Is this a valid string?\n'All the trees in Greg\\'s yard are still growing'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the single quote inside the string is escaped, meaning it has an \\ in front of it.", "question": "Is this a valid string?\n'Mary\\'s dog is a black lab.'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the single quote inside the string either needs to be escaped, meaning put a \\ in front of it, or the starting and ending single quotes need to be changed to ending quotes.", "question": "Is this a valid string?\n'All the trees in Greg's yard are still growing'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the single quote inside the string either needs to be escaped, meaning put a \\ in front of it, or the starting and ending single quotes need to be changed to ending quotes.", "question": "Is this a valid string?\n'Bob's cat is walking with dogs.'"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered yes but the right answer is no because the single quote inside the string either needs to be escaped, meaning put a \\ in front of it, or the starting and ending single quotes need to be changed to ending quotes.", "question": "Is this a valid string?\n'Mary's dog is a black lab.'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the starting and ending character is a double quote not a single quote.", "question": "Is this a valid string?\n\"All the trees in Greg's yard are still growing\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the single quote inside the string is escaped, meaning it has an \\ in front of it.", "question": "Is this a valid string?\n'Bob\\'s cat is walking with dogs.'"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the starting and ending character is a double quote not a single quote.", "question": "Is this a valid string?\n\"Bob's cat is walking with dogs.\""}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "You answered no but the right answer is yes because the starting and ending character is a double quote not a single quote.", "question": "Is this a valid string?\n\"Mary's dog is a black lab.\""}], "explanation": "Putting a \\ in front of a character that conflicts with the starting and ending character of a string is called escaping. Without escaping or changing the start/end character you'll get the error \"SyntaxError: invalid syntax\". When writing a string with a ' an easy way to not have to put a \\ in front of the ' is by starting and ending the string with \"", "examples": [{"is_correct": false, "example": "'amy's kitchen'"}, {"is_correct": true, "example": "'amy\\'s kitchen'"}, {"is_correct": true, "example": "\"amy's kitchen\""}, {"is_correct": false, "example": "'there's too many people at the party'"}, {"is_correct": true, "example": "'there\\'s too many people at the party'"}, {"is_correct": true, "example": "\"there's too many people at the party\""}], "rule": "If a string starts and ends with a single quote ' and there's a single quote(s) in the string then it must have a \\ in front of every single quote inside the string."}, {"procedure_for_the_quizzes": ["Note the variable in the while line.", "Look for that loop in the body of the while loop code, does the code ever modify the variable in a way that the conditional will at some point not be true?"], "quizzes": [{"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 13:\n    print a\n    a = a + 1"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 16:\n    print a\n    a = a + 1"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 4:\n    print a"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 9:\n    print a"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 11:\n    print a"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 10:\n    print a"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 7:\n    print a\n    a = a + 1"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 17:\n    print a"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 18:\n    print a\n    a = a + 1"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 5:\n    print a"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 13:\n    print a"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 4:\n    print a\n    a = a + 1"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 11:\n    print a\n    a = a + 1"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 19:\n    print a\n    a = a + 1"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 16:\n    print a"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 6:\n    print a"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 9:\n    print a\n    a = a + 1"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 10:\n    print a\n    a = a + 1"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 19:\n    print a"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 14:\n    print a"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 15:\n    print a\n    a = a + 1"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 14:\n    print a\n    a = a + 1"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 7:\n    print a"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 12:\n    print a"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 8:\n    print a"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 12:\n    print a\n    a = a + 1"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 8:\n    print a\n    a = a + 1"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 3:\n    print a\n    a = a + 1"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 5:\n    print a\n    a = a + 1"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 17:\n    print a\n    a = a + 1"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 15:\n    print a"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 3:\n    print a"}, {"answer": "No", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 18:\n    print a"}, {"answer": "Yes", "answer_choices": ["Yes", "No"], "wrong_answer_explanation": "", "question": "Will the below while loop ever end?\na = 0\nwhile a < 6:\n    print a\n    a = a + 1"}], "explanation": "", "examples": [], "rule": "If a variable never changes in a while loop than that loop will never end"}]