```
import random

test1="test1"
test2="test2"
test3="test3"
test4="test4"

def choose():
    test=list("test ")
    number=random.randint(1, 100)
    test[-1]=number
    return test

var=choose()
print("".join(var))

```

This works fine with just `print(var)` but when I try to `join` it, it gives me an error.