+ 1
How this underscore work in python?
Using the underscore means the last output... >>> x=10 >>> x + 9 19 >>> _ + x 29 Can underscore take any type of output? For example: function
3 Réponses
+ 4
Hushnudbek it's just a variable with name '_'
It can hold everything any other variable can.
+ 1
Python interpreter stores last expression in a special variable named '_'
In your case it has value 19.
you can also use underscore as a variable name anywhere else.
0
Can it take function?