Ad space (banner)
๐ŸŸฃJulia Lessons
Lesson 2 / 68

Your first output (println)

This lesson covers the basics of printing in Julia with println, with the aim of getting a feel for what kind of language Julia is.

println() displays text on the screen. Julia is a next-generation language built for scientific computing — as easy to write as Python, and reputedly as fast as C.

The sample code prints a string with the single line println("Hello, Julia!"). Julia's simplicity shows here: there is no fixed frame such as a main method to write first.

A common early stumble is that Julia's JIT (just-in-time) compilation makes only the first run slow. Knowing that the second run onwards is fast saves you worrying about it.

In professional work, printing to the screen is the first step in checking behaviour and debugging. Julia continues to attract attention in numerical computing and data analysis.

๐Ÿ“– Reference code
โœ๏ธ Your code
Type your code, then press "Run"

๐Ÿงช This site can't compile or run Julia directly, so it checks on the spot whether what you typed matches the reference code (scoring happens entirely in your browser โ€” nothing is sent anywhere).

Ad space (banner)
Ad space (in-article)