"""@author : Anidh SinghThis program solves the first assignment in the competitive programming playlist"""#designing the lead game solutionvaluesList = []#for adding the new values to the previous valuesprevious_value_one = 0previous_value_two = 0new_list_a=[]new_list_b=[]#Inputting all the values to the listfor _ in range(int(input())):m, n = map(int, input().split())valueOne=m+(previous_value_one)#Adding the first value to the listvaluesList.append(valueOne)#Storing the first value which will be used to add later to the 3rd valueprevious_value_one = (valuesList[-1])valueTwo=n+(previous_value_two)#Adding the second valuevaluesList.append(valueTwo)#Storing the second value which will be used to add later to the 4th valueprevious_value_two = (valuesList[-1])
Read more…