I understand the second question twofer(name) is supposed to return a string of the form “One for ${temp}, one for me”, which depends on the ‘name’ parameter. I did that but get an error that says, "No value passed for parameter ‘name’, what is this supposed to mean? I even tried changing the parameter but doesn’t work:
fun twofer(name: String): String {
TODO(“Implement the function to complete the task”)
var op: String
var name_str: String
name_str = name ?: “you”
op = “One for ${name_str}, one for me.”
name = op
return op
}