Keanu's greatest roles

Report a typo

Keanu has just finished learning about maps and tried to create via map literals a map called keanuRoles. The map would contain the name of the movies he had a role in as the keys and the names of the characters he played as the values. However, he's made some errors in his map declaration and his program won't compile.

Can you help Keanu fix the errors in his map declaration syntax?

Sample Input 1:

Sample Output 1:

map[Constantine:John Constantine 👨🏻‍💼 John Wick:Jardani Jovanovich 🤵🏻‍♂️ Speed:Jack Traven 👮🏻 The Matrix:Neo 🕵🏻‍♂️]
Write a program in Go
package main

import (
"fmt"
)

func main() {
// help keanu fix his map declaration - do not change the values inside the map!
keanuRoles = make(map[string]int){
"Constantine": "John Constantine 👨🏻‍💼",
"John Wick": "Jardani Jovanovich 🤵🏻‍♂️",
"The Matrix": "Neo 🕵🏻‍♂️",
"Speed": "Jack Traven 👮🏻",
}

fmt.Println(keanuRoles)
}
___

Create a free account to access the full topic