From edfba368186ce113bab75158b8121f62ae32cc58 Mon Sep 17 00:00:00 2001 From: surister Date: Tue, 22 Oct 2019 09:06:49 +0200 Subject: [PATCH] Completed Python Beginner 'use of _' answer --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2cd45b6..2af2d93 100644 --- a/README.md +++ b/README.md @@ -1705,7 +1705,7 @@ Shortest way is str[::-1] but not the most efficient. What _ is used for in Python?
1. Translation lookup in i18n -2. Hold the result of the last executed expression or statement +2. Hold the result of the last executed expression or statement in the interactive interpreter. 3. As a general purpose "throwaway" variable name. For example: x, y, _ = get_data() (x and y are used but since we don't care about third variable, we "threw it away").