Last active
March 31, 2024 13:22
-
-
Save pointofpresence/aa6adafd51b6b7c26acdb679c2f6015f to your computer and use it in GitHub Desktop.
Python: Одноразовая переменная
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Игнорирование значений | |
| 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