You should use a dictionary.
lists = {"slice1":["a1", "a2", "a3"], "slice2":["b1", "b2", "b3"]}
userInput = input("Enter Slice Number")
varName = "slice"+userInput
print(" ".join(lists[varName]))
slice1 is what is called a key. Keys are immutable items (usually strings, but can be integers or tuples). Each key has a value, for example, slice1 has a value ["a1", "a2", "a3"]. You can access values just like you would in a list, but instead of using the index, you use the key.
So when you want to access ["a1", "a2", "a3"] you do lists["slice1"]. This has the advantage over using globals as you can easily add new keys and change values. Also, it is bad practice to change globals directly.
" ".join(lists["slice1"])
" ".join(list) gets all the items of list and puts them together using the text " " as a separator.
The code I have above ends up doing this
>>>Enter Slice Number1
a1 a2 a3
>>>
So when you enter "1" you get "a1 a2 a3"
l1 = [['a1', 'a2', 'a3'], ['b1', 'b2', 'b3']]; print(l1[int(input("Enter slice number:"))]). The slice number should be within the list index. Or else it will throw error.