Lessons
An introduction to writing Kotlin
Kotlin · Introductory. Ten lessons. Open-book quizzes. Lesson 1 free.
10 lessons · The Host · Lesson 1 free
Pass all ten lessons for the certificate. Sample · Claim

Lesson 1 · On the house
Hello, Kotlin
fun main, println, top-level entry.

Lesson 2
val and var
Prefer val; inference; reassignment rules.

Lesson 3
Types you can see
Int, Double, String, Boolean; annotations.

Lesson 4
String templates
$name, ${expr}, and raw strings.

Lesson 5
if and when
if as expression; when branches; Boolean conditions.

Lesson 6
Loops
for ranges, until, while, break/continue.

Lesson 7
Functions
fun, params, return types, single-expression =.

Lesson 8
Null safety
String?, ?., ?:, !!, and smart casts.

Lesson 9
Collections
listOf, mutableListOf, mapOf, indexing, size.

Lesson 10
Data classes
data class, copy, destructuring; a tiny program.
Sample certificate
Certificate of completion
Sign in to claim your certificate of completion.
Certificate
Finish all ten lessons, then sign in
Pass every lesson on this device (quizzes and checks). Then sign in or create an account to type your name and download the JPG.