Organize your code again

Report a typo

You have an instance of the class Musician. Using a proper scope function, write code that will output information about different musicians.

Sample Input 1:

Liam Gallagher
Oasis
Vocal

Sample Output 1:

Name: Liam Gallagher
Band: Oasis
Role: Vocal
Write a program in Kotlin
data class Musician(var name: String = "", var band: String = "", var role: String = "")

fun main() {
val musician = Musician()

musician.apply {
name = readln()
band = readln()
role = readln()
}

// Write your code here
}
___

Create a free account to access the full topic