You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User Issue
Email: jstnl57865@gmail.com
User Agent: Mozilla/5.0 (X11; CrOS aarch64 14695.85.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
or so it seems. Please clarify the question in the problem. I get how to do it, but I don't get the exact format it is asking for, and the hint button is not right either apparently.
Redux state
{"book":{"error":null,"route":"main","previousRoute":"main","pageSlugsList":["IntroducingTheShell","NavigatingShellHistory","IntroducingStrings","AddingStrings","IntroducingVariables","UsingVariables","WritingPrograms","StoringCalculationsInVariables","IntroducingForLoops","Indentation","BasicForLoopExercises","BuildingUpStrings","BuildingUpStringsExercises","BasicTerminology","IntroducingIfStatements","CombiningCompoundStatements","UnderstandingProgramsWithSnoop","IfAndElse","TheEqualityOperator","IntroducingElif","OtherComparisonOperators","IntroducingLists","BuildingNewLists","UsingBreak","GettingElementsAtPosition","GettingElementsAtPositionExercises","CallingFunctionsTerminology","FunctionsAndMethodsForLists","MoreListFunctionsAndMethods","StringMethodsUnderstandingMutation","HowToFindInformationWithGoogleAndMore","UnderstandingProgramsWithPythonTutor","EqualsVsIs","ModifyingWhileIterating","SingleAndDoubleQuotesInStrings","IntroducingFstrings","IntroducingNestedLoops","IntroducingBirdseye","IntroducingNestedLists","LoopingOverNestedLists","DefiningFunctions","CallingFunctionsWithinFunctions","ReturningValuesFromFunctions","TestingFunctions","MoreOnReturn","IntroducingOr","IntroducingAnd","MultiLineExpressions","CombiningAndAndOr","IntroducingNotPage","IntroducingTicTacToe","NewlinesAndFormatBoard","Types","InteractiveProgramsWithInput","NestedListAssignment","MakingTheBoard","TheFullTicTacToeGame"],"user":{"uid":"R99IUFbVMVVnzgy7cnnAtwJAxQ72","email":"jstnl57865@gmail.com","developerMode":false,"pageSlug":"UsingBreak","pagesProgress":{"AddingStrings":{"step_name":"final_text"},"BasicForLoopExercises":{"step_name":"final_text"},"BuildingUpStrings":{"step_name":"final_text"},"BuildingUpStringsExercises":{"step_name":"final_text"},"CombiningCompoundStatements":{"step_name":"final_text"},"IfAndElse":{"step_name":"final_text"},"Indentation":{"step_name":"final_text"},"IntroducingElif":{"step_name":"final_text"},"IntroducingForLoops":{"step_name":"final_text"},"IntroducingIfStatements":{"step_name":"final_text"},"IntroducingStrings":{"step_name":"final_text"},"IntroducingTheShell":{"step_name":"final_text"},"IntroducingVariables":{"step_name":"final_text"},"StoringCalculationsInVariables":{"step_name":"final_text"},"TheEqualityOperator":{"step_name":"final_text"},"UnderstandingProgramsWithSnoop":{"step_name":"final_text"},"UsingVariables":{"step_name":"final_text"},"WritingPrograms":{"step_name":"final_text"},"NavigatingShellHistory":{"step_name":"final_text"},"BasicTerminology":{"step_name":"final_text"},"OtherComparisonOperators":{"step_name":"final_text"},"IntroducingLists":{"step_name":"final_text"},"BuildingNewLists":{"step_name":"final_text"},"UsingBreak":{"step_name":"list_contains_exercise"},"GettingElementsAtPosition":{"step_name":"introducing_subscripting"},"GettingElementsAtPositionExercises":{"step_name":"index_exercise"},"CallingFunctionsTerminology":{"step_name":"print_functions"},"FunctionsAndMethodsForLists":{"step_name":"append_vs_concatenate"},"MoreListFunctionsAndMethods":{"step_name":"sorted_predict_exercise"},"StringMethodsUnderstandingMutation":{"step_name":"string_in_step"},"HowToFindInformationWithGoogleAndMore":{"step_name":"sum_list"},"UnderstandingProgramsWithPythonTutor":{"step_name":"run_with_python_tutor"},"EqualsVsIs":{"step_name":"two_separate_lists"},"ModifyingWhileIterating":{"step_name":"run_broken_with_python_tutor"},"SingleAndDoubleQuotesInStrings":{"step_name":"single_quotes_apostrophe"},"IntroducingFstrings":{"step_name":"introduce_f_strings"},"IntroducingNestedLoops":{"step_name":"first_nested_loop"},"IntroducingBirdseye":{"step_name":"first_birdseye_example"},"IntroducingNestedLists":{"step_name":"string_list_exercise"},"LoopingOverNestedLists":{"step_name":"nested_list_nested_loop_example"},"DefiningFunctions":{"step_name":"define_greet"},"CallingFunctionsWithinFunctions":{"step_name":"print_twice_call_print_many"},"ReturningValuesFromFunctions":{"step_name":"first_return"},"TestingFunctions":{"step_name":"introducing_assert_equal"},"MoreOnReturn":{"step_name":"double_return_in_one_function"},"IntroducingOr":{"step_name":"InputAliceBob"},"IntroducingAnd":{"step_name":"TrueAndTrue"},"MultiLineExpressions":{"step_name":"invalid_multiline"},"CombiningAndAndOr":{"step_name":"CombiningAndOr"},"IntroducingNotPage":{"step_name":"IntroducingNot"},"IntroducingTicTacToe":{"step_name":"intro_row_winner"},"NewlinesAndFormatBoard":{"step_name":"one_way_to_print_board"},"Types":{"step_name":"five_different_types"},"InteractiveProgramsWithInput":{"step_name":"first_input"},"NestedListAssignment":{"step_name":"modify_list_in_function"},"MakingTheBoard":{"step_name":"naive_make_board"},"TheFullTicTacToeGame":{"step_name":"the_full_game"}}},"processing":false,"running":false,"numHints":10,"editorContent":"things = ['This','is','a','list']\ndoor = False\n\nfor word in things:\n thing_to_find = 'is'\n if word == thing_to_find:\n door = True\n else:\n door = False\n print(door)\n \nfor word in things:\n thing_to_find = 'other'\n if word == thing_to_find:\n door = True\n else:\n door = False\n print(door)","messages":[],"pastMessages":["<p>The code is correct, but you didn't run it as instructed. Type your code directly in the shell after <code>>>></code> and press Enter.</p>","<p><strong>Unused variable <code>new_sentece</code></strong></p>\n<p>You defined a variable <code>new_sentece</code> but never used it. Did you forget to use it?\nMaybe you used the wrong variable in its place? If you don't need it, just remove it entirely.</p>","<p>Given these values:</p>\n<pre><code class=\"codehilite\"><span><span class=\"n\">x1</span> <span class=\"o\">=</span> <span class=\"s1\">'Charlie'</span>\n<span class=\"n\">x2</span> <span class=\"o\">=</span> <span class=\"s1\">'Bob'</span>\n<span class=\"n\">x3</span> <span class=\"o\">=</span> <span class=\"s1\">'Alice'</span>\n</span></code></pre>\n<p>your code outputs:</p>\n<pre><code class=\"codehilite\"><span><span class=\"n\">Bob</span>\n</span></code></pre>\n<p>when it should output:</p>\n<pre><code class=\"codehilite\"><span><span class=\"n\">Alice</span>\n</span></code></pre>","<p>Given these values:</p>\n<pre><code class=\"codehilite\"><span><span class=\"n\">x1</span> <span class=\"o\">=</span> <span class=\"s1\">'Alice'</span>\n<span class=\"n\">x2</span> <span class=\"o\">=</span> <span class=\"s1\">'Charlie'</span>\n<span class=\"n\">x3</span> <span class=\"o\">=</span> <span class=\"s1\">'Bob'</span>\n</span></code></pre>\n<p>your code outputs:</p>\n<pre><code class=\"codehilite\"><span><span class=\"n\">Bob</span>\n</span></code></pre>\n<p>when it should output:</p>\n<pre><code class=\"codehilite\"><span><span class=\"n\">Alice</span>\n</span></code></pre>","<p>Your code should start like this:</p>\n<pre><code class=\"codehilite\"><span><span class=\"n\">words</span> <span class=\"o\">=</span> <span class=\"s1\">'...'</span>\n</span></code></pre>","<p><strong>Unused variable <code>cond</code></strong></p>\n<p>You defined a variable <code>cond</code> but never used it. Did you forget to use it?\nMaybe you used the wrong variable in its place? If you don't need it, just remove it entirely.</p>","<p><strong>Unused variable <code>words</code></strong></p>\n<p>You defined a variable <code>words</code> but never used it. Did you forget to use it?\nMaybe you used the wrong variable in its place? If you don't need it, just remove it entirely.</p>","<p>Given these values:</p>\n<pre><code class=\"codehilite\"><span><span class=\"n\">words</span> <span class=\"o\">=</span> <span class=\"p\">[</span><span class=\"s1\">'The'</span><span class=\"p\">,</span> <span class=\"s1\">'quick'</span><span class=\"p\">,</span> <span class=\"s1\">'brown'</span><span class=\"p\">,</span> <span class=\"s1\">'fox'</span><span class=\"p\">,</span> <span class=\"s1\">'jumps'</span><span class=\"p\">]</span>\n<span class=\"n\">separator</span> <span class=\"o\">=</span> <span class=\"s1\">'**'</span>\n</span></code></pre>\n<p>your code outputs:</p>\n<pre><code class=\"codehilite\"><span><span class=\"n\">The</span><span class=\"o\">**</span><span class=\"n\">quick</span><span class=\"o\">**</span><span class=\"n\">brown</span><span class=\"o\">**</span><span class=\"n\">foxjumps</span>\n</span></code></pre>\n<p>when it should output:</p>\n<pre><code class=\"codehilite\"><span><span class=\"n\">The</span><span class=\"o\">**</span><span class=\"n\">quick</span><span class=\"o\">**</span><span class=\"n\">brown</span><span class=\"o\">**</span><span class=\"n\">fox</span><span class=\"o\">**</span><span class=\"n\">jumps</span>\n</span></code></pre>","<p><strong>STOP!</strong></p>\n<p>Try to avoid copy pasting code. You will learn, absorb, and remember better if you type in the code yourself.</p>\n<p>When copying is appropriate, there will be a button to click to make it easy. If there's no button, try typing.</p>\n<p>Having said that, we're not going to force you. Copy if you really want to.</p>","<p>Your code should start like this:</p>\n<pre><code class=\"codehilite\"><span><span class=\"n\">numbers</span> <span class=\"o\">=</span> <span class=\"s1\">'...'</span>\n</span></code></pre>","<p><strong>Unused variable <code>things</code></strong></p>\n<p>You defined a variable <code>things</code> but never used it. Did you forget to use it?\nMaybe you used the wrong variable in its place? If you don't need it, just remove it entirely.</p>","<p><strong>Unused variable <code>thing_to_find</code></strong></p>\n<p>You defined a variable <code>thing_to_find</code> but never used it. Did you forget to use it?\nMaybe you used the wrong variable in its place? If you don't need it, just remove it entirely.</p>","<p>Your code should start like this:</p>\n<pre><code class=\"codehilite\"><span><span class=\"n\">things</span> <span class=\"o\">=</span> <span class=\"s1\">'...'</span>\n<span class=\"n\">thing_to_find</span> <span class=\"o\">=</span> <span class=\"s1\">'...'</span>\n</span></code></pre>"],"requestingSolution":4,"prediction":{"choices":null,"answer":null,"userChoice":"","wrongAnswers":[],"state":"hidden","codeResult":{"passed":true,"messages":[],"output":"[9, 6]\n"}},"questionWizard":{"messages":[],"requestExpectedOutput":false,"expectedOutput":""}}}
The text was updated successfully, but these errors were encountered:
User Issue
Email: jstnl57865@gmail.com
User Agent: Mozilla/5.0 (X11; CrOS aarch64 14695.85.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36
or so it seems. Please clarify the question in the problem. I get how to do it, but I don't get the exact format it is asking for, and the hint button is not right either apparently.
Redux state
The text was updated successfully, but these errors were encountered: