Sobes.tech
Junior — Senior

What output will the program (example 29) produce

livecode

Task condition

Determine what text will appear in the console after running the following Go program:

import (
        "fmt"
        )

func main() {
     list := [] int{1, 2, 3, 4}
     handle(list[:1])
     fmt.Println("after", list)       
}

func handle(list [] int) {
    list = append(list, 5)
     fmt.Println("append", list)       
}