79666579

Date: 2025-06-15 13:25:51
Score: 1
Natty:
Report link

You can do:

x = 10
println("$(typeof(x)) $x")

or just:

@show x

which prints:

x = 10

(showing both the name, value, and from the REPL you'll still see the type if you want with typeof(x))

If you want type + value in one string:

println("$(typeof(x)) $(x)")

Example output:

Int64 10
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hanshi