In/not in result output question

Asked 1 weeks ago, Updated 1 weeks ago, 1 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


© 2022 pinfo. All rights reserved.