Write a Python code that gives the output of all possible combinations of given elements.
[1, 2, 3]
from itertools import combinations

input_list = [1, 2, 3]
result = list(combinations(input_list, 3))

for combination in result:
    print(combination)