In/not in result output question

Asked 2 years ago, Updated 2 years ago, 16 views

list_a = [ 273, 32, 103, 57, 52]

273 in list_a
99 in list_a
100 in list_a
52 in list_a

When you enter it like this, the result value of true or false does not come out I wonder how to fix it.

python

2022-09-20 15:32

1 Answers

list_a = [273, 32, 103, 57, 52]

print(273 in list_a)


2022-09-20 15:32

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.