Open study

is now brainly

With Brainly you can:

  • Get homework help from millions of students and moderators
  • Learn how to solve problems with step-by-step explanations
  • Share your knowledge and earn points by helping other students
  • Learn anywhere, anytime with the Brainly app!

A community for students.

Pulling my hair out -- Problem Set 3 Problem 5 I can't create a new list iterating through my corrected word list (after the perms function) to check the words for point values. for i in choosen_word: if is_valid_word(i, hand, word_list)== True: print type(i) print i print type(valid_list) print valid_list valid_list = valid_list.append[i]

MIT 6.00 Intro Computer Science (OCW)
See more answers at brainly.com
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this and thousands of other questions

1 Attachment
Two things that I notice in this bit of code: First, append is a function and should be called accordingly (with '(' and ')' instead of '[' and ']'). Second, you call valid_list.append(i) and than you assign the result of that function to valid_list. But as far as I know, the append method does not return anything (also known as None in Python). So you append a value to the list properly by calling append, but afterwards you assign the value None to that same list. Try just calling append.
it was originally coded that way -- i was just trying anything to get it to work -- i think you are right though my mistake was using the brackets instead of parenthesis -- ugh i spent like an hour trying to debug that

Not the answer you are looking for?

Search for more explanations.

Ask your own question

Other answers:

Not the answer you are looking for?

Search for more explanations.

Ask your own question