Kotlin Tutorial
Kotlin classes, kotlin examples, kotlin exercises.
You can test your Kotlin skills with W3Schools' Exercises.
We have gathered a variety of Kotlin exercises (with answers) for each Kotlin Chapter.
Try to solve an exercise by editing some code, or show the answer to see what you've done wrong.
Count Your Score
You will get 1 point for each correct answer. Your score and total score will always be displayed.
Start Kotlin Exercises
Start Kotlin Exercises ❯
If you don't know Kotlin, we suggest that you read our Kotlin Tutorial from scratch.
COLOR PICKER
Contact Sales
If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail: [email protected]
Report Error
If you want to report an error, or if you want to make a suggestion, send us an e-mail: [email protected]
Top Tutorials
Top references, top examples, get certified.
Practice 89 exercises in Kotlin
Learn and practice Kotlin by completing 89 exercises that explore different concepts and ideas.
Explore the Kotlin exercises on Exercism
Unlock more exercises as you progress. They’re great practice and fun to do!
Kata Library: Kotlin Practice
- Collections
Collect: kata
Loading collection data...
You have not created any collections yet.
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection .
Set the name for your new collection. Remember, this is going to be visible by everyone so think of something that others will understand.
IMAGES
VIDEO