Question: it shows that this code doesnt satisfy the tests Define a function get_feedback that - takes code and guess as the first and second arguments

it shows that this code doesnt satisfy the tests
it shows that this code doesnt satisfy the tests Define a function
get_feedback that - takes code and guess as the first and second

Define a function get_feedback that - takes code and guess as the first and second arguments respectively, and - returns a feedback string that starts with the appropriate number of characters 'b' (for black key pegs) followed by the appropriate number of characters ' w ' (for white key pegs). NaseError Cell In (59), line 12 Traceback (most recent call last) print 1 f'With code=" (code) and guessw" ( guess } ", feedback should be "\{feedback } ", not "\{feedback_\}"., 9 assert correct 12 test_get_feedback(10 = "b" + "W" * 0, "RGBRGBRGBY", "AGBRGBRGEY") 14 test_get_feedback(B * "b" + "w" * 0 , "RGRGRGRG", "RGRGRGRG") Cell In [591, tine 3 , in test get_feedback (feedback, code, quess) 2 def test_get_feedback(feedback, code, guess): feedback = get feedback (code, guess) correct = feedback = feedback if not correct: Cell In I5BI, Une 3, in get_feedback (code, quess) 1 def get_fcedback(code, quess)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!