From 06dc4e118e6f895c5c9c61901c838f5cd74ba1b9 Mon Sep 17 00:00:00 2001 From: arpithub Date: Sun, 7 Apr 2024 16:26:02 -0500 Subject: [PATCH] fixed typo --- _posts/2024-04-02-python-underscode.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2024-04-02-python-underscode.md b/_posts/2024-04-02-python-underscode.md index d9c11db..b0fd5a2 100644 --- a/_posts/2024-04-02-python-underscode.md +++ b/_posts/2024-04-02-python-underscode.md @@ -11,7 +11,7 @@ tags: [python,python_tips] comments: true --- -We all have seen underscode symbol in Python. One of the most common uses of the underscore is as a placeholder variable. When iterating over a sequence or generating a range of values, there are often situations where the loop variable is not needed. In such cases, Python programmers opt to use _ as a concise way to indicate that the value is irrelevant to the current context. +We all have seen underscore symbol in Python. One of the most common uses of the underscore is as a placeholder variable. When iterating over a sequence or generating a range of values, there are often situations where the loop variable is not needed. In such cases, Python programmers opt to use _ as a concise way to indicate that the value is irrelevant to the current context. ```python for _ in range(10):