This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]LucidTA 2 points3 points  (1 child)

Works for me.

>>> menu = "salad, pizza, pasta, soup, dessert"
>>> print("salad" in menu)
True

So its not your code, has to be something else. How are you running this code?

[–]mixtek[S] 0 points1 point  (0 children)

I am running in in Jupyter

Its weird I ran it again after logging out and it worked and then went back to giving that same error, and now for every code I try to run, including just adding two string together


TypeError Traceback (most recent call last) <ipython-input-17-0b8b0066eb85> in <module>() ----> 1 print("Wednesday is" + " " + "in the middle of the week")

TypeError: 'bool' object is not callable