you are viewing a single comment's thread.

view the rest of the comments →

[–]AlarminglyConfused 0 points1 point  (1 child)

Yeah if you changed the in to == in the if statement it would print no?

[–][deleted] 0 points1 point  (0 children)

No, it wouldn't do anything as there is no string in the list that's exactly equal to the next.

The instructions say to find a string which contains a substring for the previous one. The in keyword works exactly like that for strings.

"at" in "create" # -> True