Skip to content

Instantly share code, notes, and snippets.

@pointofpresence
Last active March 31, 2024 13:22
Show Gist options
  • Save pointofpresence/aa6adafd51b6b7c26acdb679c2f6015f to your computer and use it in GitHub Desktop.
Save pointofpresence/aa6adafd51b6b7c26acdb679c2f6015f to your computer and use it in GitHub Desktop.
Python: Одноразовая переменная
# Игнорирование значений
for _ in range(10):
print("Hello")
# Игнорирование индексов
my_list = [1, 2, 3, 4, 5]
for _, value in enumerate(my_list):
print(value)
# Использование как временной переменной
x, _, z = my_tuple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment