Introduction to Swift
First step into Apple's iOS/macOS language Swift: printing with print, comments, and simple syntax.
Simple enough for a 5-year-old to understand
Print with print
Swift is simple: no semicolons are needed, and a main function is not required. print outputs text to the screen and moves to the next line.
print("Hello!")Comment line
// This is a comment — does not run.print("Code here")🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (2 left)
🎯 Expected output: Hello World