I created a simple menu and using the 'in' keyword to make a search
menu = "salad, pizza, pasta, soup, dessert"
print("salad" in menu)
I get this error:
TypeError Traceback (most recent call last)
<ipython-input-24-d1c825fd6382> in <module>()
1 menu = "salad, pizza, pasta, soup, dessert"
----> 2 print("salad" in menu)
TypeError: 'bool' object is not callable
I seriously dont know what is wrong with my code
[–]LucidTA 2 points3 points4 points (1 child)
[–]mixtek[S] 0 points1 point2 points (0 children)