0Pricing
Swift Academy · Lesson

First Program & Build/Run (REPL vs swiftc, scripts)

Write your first Swift program, run it in the REPL, compile with swiftc, and save scripts for reuse.

Intro

Goal: Write your first Swift program and learn how to run it. We will use the REPL, compile with swiftc, and create simple scripts.

Hello in REPL

In the REPL, type print("Hello, Swift") and press Enter. The result appears instantly—perfect for fast tests.

All lessons in this course

  1. What is Swift? Safety, Performance, Readability
  2. Install & Tools: Swift toolchain, REPL, swiftc, Editors
  3. First Program & Build/Run (REPL vs swiftc, scripts)
← Back to Swift Academy