Use the `any()` function to check if a value exists in a two-dimensional list, e.g. `if any('value' in nested_list for nested_list in my_2d_list):`.
確定! 回上一頁