• python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Facebook Twitter Instagram
Devs Fixed
  • python
  • javascript
  • reactjs
  • sql
  • c#
  • java
Devs Fixed
Home ยป Resolved: Finding a value inside a list

Resolved: Finding a value inside a list

0
By Isaac Tonny on 18/06/2022 Issue
Share
Facebook Twitter LinkedIn

Question:

I am trying to create a boolean result if a specific value is inside the following list. Unfortunately i am dealing with some error which i dont know how to fix it
but i got the following error:

Answer:

You have created nested list so that code is not doing what you think it is. You are actually checking if specific element is in outer array but instead you should search if element exists in inner array.
Try next:
Hope that helps.

If you have better answer, please add a comment about this, thank you!

list python
Share. Facebook Twitter LinkedIn

Related Posts

Resolved: How to compare two text files and and change the sign of the data in powershell?

27/03/2023

Resolved: Java Virtual Machines deleted

27/03/2023

Resolved: PyCharm cannot see my newly compiled .pyc see on import

27/03/2023

Leave A Reply

© 2023 DEVSFIX.COM

Type above and press Enter to search. Press Esc to cancel.