In a command-line Python session, you can use the underscore to grab the output of the previous expression:
> 5 * 6
30
> _ + 2
32
Is there something similar in Julia?
You can use ans (https://docs.julialang.org/en/v1/base/base/#ans)
julia> 5 * 6
30
julia> ans + 2
32
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With