Syllabus

  1. 01Introduction to KotlinMeet Kotlin, write your first program with a main function, print output and add comments.5 lessons
    1. 01Meet Kotlin
    2. 02Output and Comments
    3. 03Reading Compiler Errors
    4. 04Project: Recipe Card
    5. 05Quiz: Introduction
  2. 02Data Types and VariablesStore values with val and var, learn Kotlin's basic types, build text with string templates and string functions, and calculate with numbers and the math library.11 lessons
    1. 01val and var
    2. 02Data Types
    3. 03Strings and Templates
    4. 04String Functions
    5. 05Numbers and Operators
    6. 06The Math Library
    7. 07Reading Input and Converting Text
    8. 08Project: Road Trip Budget
    9. 09Project: Bakery Stock Counter
    10. 10Project: Postcard Builder
    11. 11Quiz: Data Types and Variables
  3. 03Conditional ExpressionsMake decisions with if and else, combine conditions with comparison and logical operators, test ranges, and choose between many cases with when.7 lessons
    1. 01if and else
    2. 02Comparison and Logical Operators
    3. 03Ranges
    4. 04when Expressions
    5. 05Project: Cinema Ticket Pricing
    6. 06Project: Trail Badge Scorer
    7. 07Quiz: Conditional Expressions
  4. 04CollectionsStore groups of values in lists, sets and maps, choose between read-only and mutable versions, and use their most important properties and functions.5 lessons
    1. 01Lists
    2. 02Sets
    3. 03Maps
    4. 04Project: Little Free Library
    5. 05Quiz: Collections
  5. 05LoopsRepeat code with for loops over ranges and collections, while and do-while loops, and control them with break, continue and labels.6 lessons
    1. 01for Loops
    2. 02while and do-while
    3. 03break, continue and Labels
    4. 04Iterating Maps and Using forEach
    5. 05Project: Step Challenge
    6. 06Quiz: Loops
  6. 06FunctionsOrganize code into functions with parameters, return types, default and named arguments, single-expression bodies, lambdas and recursion.6 lessons
    1. 01Defining Functions
    2. 02Default and Named Arguments
    3. 03Single-Expression Functions and Lambdas
    4. 04Recursion
    5. 05Project: Grade Book
    6. 06Quiz: Functions
  7. 07ClassesModel real things with classes: properties, constructors, init blocks, member functions and data classes.5 lessons
    1. 01Classes and Objects
    2. 02init Blocks and Member Functions
    3. 03Data Classes
    4. 04Project: Plant Watering Planner
    5. 05Quiz: Classes