Given a list of integers, write a Python program to find the index of the largest number.
[5, 10, 20, 6, 8]
nums = [5, 10, 20, 6, 8]
max_num = max(nums)
max_index = nums.index(max_num)

print(max_index)