1 in (1, 2, 3)
будет истинным, а 4 in (1, 2, 3)
будет ложным.class Items:
def __init__(self):
self.open_items = []
self.sorted_items = self.open_items
item = Items()
item.open_items = ['item 1', 'item 2']
print('1 вариант', item.open_items)
print('1 вариант', item.sorted_items)
open_items = []
open_items = ['item 1', 'item 2']
sorted_items = open_items
print('2 вариант', open_items)
print('2 вариант', sorted_items)
open_items = []
sorted_items = open_items
open_items = ['item 1', 'item 2']
print('2 вариант', open_items)
print('2 вариант', sorted_items)