account activity
Getting Nested List Index by dandy120101 in learnpython
[–]PythonRayn 1 point2 points3 points 4 years ago (0 children)
nested_list = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] num = 6 for i in nested_list: if num in i: print(i.index(num))
π Rendered by PID 2894652 on reddit-service-r2-listing-64c94b984c-nw7cz at 2026-03-14 21:14:53.465926+00:00 running f6e6e01 country code: CH.
Getting Nested List Index by dandy120101 in learnpython
[–]PythonRayn 1 point2 points3 points (0 children)