0
0
Kotlinprogramming~15 mins

What is Kotlin - Hands-On Activity

Choose your learning style9 modes available
What is Kotlin
📖 Scenario: You are curious about a modern programming language used to build apps and software. Kotlin is a popular choice for Android apps and more.
🎯 Goal: Learn the basics of Kotlin by creating a simple program that shows what Kotlin is.
📋 What You'll Learn
Create a variable with a description of Kotlin
Create a variable with a simple example of Kotlin code
Print the description and example
💡 Why This Matters
🌍 Real World
Kotlin is widely used to build Android apps and server-side applications.
💼 Career
Knowing Kotlin is valuable for Android developers and software engineers working with modern, concise code.
Progress0 / 4 steps
1
Create a variable with a description of Kotlin
Create a variable called description and set it to the string "Kotlin is a modern programming language used for Android and more."
Kotlin
Need a hint?

Use val to create a variable and assign the exact string.

2
Create a variable with a simple Kotlin example
Create a variable called example and set it to the string "fun main() { println(\"Hello, Kotlin!\") }"
Kotlin
Need a hint?

Remember to escape quotes inside the string with \".

3
Print the description
Use println(description) to print the description variable.
Kotlin
Need a hint?

Use println to show the text stored in description.

4
Print the Kotlin example code
Use println(example) to print the example variable.
Kotlin
Need a hint?

Print the example variable to show the Kotlin code example.