Computer Programming
455 learners
Functions in Swift
Learn to organize Swift code with functions, enhancing readability and reusability. This course covers defining and calling functions, passing parameters, returning values, and understanding scope, all within the context of managing space missions and exploration tasks.
Swift
5 lessons
25 practices
2 hours
Requirement Understanding & Implementation
Lessons and practices
Defining Your First Function
Modify Function to Prepare Mission
Fix the Function Code
Defining Basic Functions in Swift
Define a Launch Function
Run Code with Parameters in Swift
Modify Function Output
Fix the Announce Function
Announce Mission Starting Location
Announcing the Mission Destination
Calculating Travel Time with Functions
Calculate Fuel for Space Mission
Fix the Space Travel Code
Calculate Crew Size Function
Calculate Travel Time Function
Understanding Variable Scope in Swift
Change Variable Names to Understand Scope
Fix Variable Scope Bug
Mastering Function Scope in Swift
Function Scope in Action
Combining Function Concepts in Swift
Modify Mission Supplies Check
Fix the Launch Preparation Function
Complete Mission Launch Check
Write Function to Check Equipment
Meet Cosmo:
The smartest AI guide in the universe
Our built-in AI guide and tutor, Cosmo, prompts you with challenges that are built just for you and unblocks you when you get stuck.

Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal