Complete the code to create an immutable set with elements 1, 2, and 3.
val numbers = [1](1, 2, 3)
Use setOf to create an immutable set in Kotlin.
Complete the code to create a mutable set with elements "apple" and "banana".
val fruits = [1]("apple", "banana")
Use mutableSetOf to create a set that you can change later.
Fix the error in the code to create an immutable set of integers.
val nums = setOf[1]1, 2, 3)
The setOf function requires parentheses around its arguments.
Fill both blanks to create a mutable set and add an element "orange".
val fruits = [1]("apple", "banana") fruits.[2]("orange")
Use mutableSetOf to create a mutable set and add to insert a new element.
Fill all three blanks to create an immutable set of numbers, check if it contains 5, and print the result.
val numbers = [1](1, 2, 3, 4, 5) val hasFive = numbers.[2](5) println([3])
Create an immutable set with setOf, check membership with contains, and print the boolean variable.
