Some supervillain hacked Ryan Gosling's notebook and messed up his film data base. To each film, he added the prefix "he-he-he" and deleted the absolutely necessary phrase "with a great actor Ryan Gosling". Help Ryan to fix it and insert suitable scope functions in this code instead of <scope function>.
Scope functions: summary
Insidious hackers
Report a typo
Sample Input 1:
he-he-heThe BelieverSample Output 1:
THE BELIEVER WITH GREAT ACTOR RYAN GOSLINGWrite a program in Kotlin
fun main() {
val title = readln()
val filmTitle = title
.removePrefix("he-he-he")
.<scope function> { "$it with great actor Ryan Gosling" }
.uppercase()
.<scope function>(::println)
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.