'''
Program2: using this list [5, 10, 15, 20, 25, 50, 0]. Write a program to
find the index of the value 20 in the list. Then add this index value to
the list.
• Expected run of this program looks like the following:
The index value of 20 is: 3
The list after adding this value is [5, 10, 15, 20, 25, 50, 0, 3]
'''
List=[5, 10, 15, 20, 25, 50, 0]
var=20
for x in range(len(List)):
  if List[x]==var:
      print("The index value of ",var," is: ",x)
      List.append(x)
print("The list after adding this value is ",List)