🧠 Ready to store and reuse data in your code? It’s time to learn variables!
In this episode - the first in the Learn to Code 2 series - we introduce one of the most powerful programming tools: variables. Think of them as containers for information, like a label that remembers a value.
Whether you’re tracking gems, directions, or game state, variables help your code adapt and respond in smart ways.
What You’ll Learn:
What variables are (and why they matter)
How to name and use variables in Swift
Solving puzzles with reusable data
The basics of assignment and updating values
📱 Download Swift Playgrounds:
→ Mac: https://apps.apple.com/us/app/swift-p...
→ iPad: https://apps.apple.com/us/app/swift-p...
📺 Missed the other lessons? Learn to code playlist: • Learn to Code with Swift Playgrounds (2025...
---
👍 Like this video? Hit Subscribe to follow the whole series!
#SwiftPlaygrounds #LearnToCode #SwiftTutorial #BeginnerCoding
⏱️Timestamps
00:00 - Intro & What are Variables?
02:18 - Keeping Track
04:15 - Bump Up the Value
06:56 - Incrementing the Value
11:02 - Seeking Seven Gems
13:31 - Three Gems, Four Switches
21:44 - Checking for equal values
25:11 - Round Up the Switches
31:12 - Collect the Total
34:38 - Wrap up & What's next