Untitled attachment
https://files.mastodon.social/media_attachments/files/112/257/326/286/118/668/original/87135fca8f6b79d9.png
Yesterday I had quite stressful job interview, so there was no #DailyPythonista.
But here we go again. And again with a quick one.
Do you know underscore symbol? The "_" one. Probably so.
In Python, it has two main usages.
First, it's an unnamed variable. You can use it when unpacking tuple (or any other sequence) to "throw away" unneeded values. 🚮
Second, it's the reference to output of previous expression in interpreter. Quite handy if you use #Python as your main calculator on PC. 🧮
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.