повторить Python

> rep(c("A","B"), times=2)
[1] "A" "B" "A" "B"
Vivacious Vulture