if set(onumbers) == set(numbers): print("Новые числа не появились.") return else:…
Jump to turn (7)
- 1if set(onumbers) == set(numbers): print("Новые числа не появились.") return else
- 2почему он не работает? cannot access local variable 'onumbers' where it is not a
- 3на русском
- 4она и так находится в глобальной области
- 5как получить значение строки из файла на python
- 6как задать длину массива python
- 7в чем проблема этого кода import traceback import time import requests from sele
- User
if set(o_numbers) == set(numbers): print("Новые числа не появились.") return else: o_numbers = numbers.copy()
- Assistant
This code block checks if a new set of numbers has the exact same elements as the old set of numbers. If they are the same, then it prints a message saying that no new numbers have appeared. If they are different, then the old set of numbers is updated to be a copy of the new set of numbers.
It is likely part of a larger program that is tracking changes in a set of numbers over time. The purpose of this block is to prevent unnecessary processing if there are no changes in the numbers.
- User
почему он не работает? cannot access local variable 'o_numbers' where it is not associated with a value