Strings In Depth4 / 17
Up next

Count and Repeat

package main

import (
	"fmt"
	"strings"
)

func main() {
	fmt.Println(strings.Count("banana", "a"))
	fmt.Println(strings.Repeat("ab", 3))
}
What you're solving

tally occurrences, duplicate text