human
Jump in rank of a student after updating marks | Function to print the name of student who stood first after updation in rank.
Array of students.
Store the name of the student.
Update the marks of the student.
Store the current rank of the student.
Print the name and jump in rank.
Names of the students.
Marks of the students.
Updates that are to be done.
Number of students"
Solution in Python:
 Give me a code to jump in rank of a student after updating marks and the other steps required?
assistant
#Here is code to jump in rank of a student after updating marks and the other steps required.
 def nameRank ( names , marks , updates , n ) :
	x = [ [ 0 for j in range ( 3 ) ] for i in range ( n ) ]
	for i in range ( n ) :
		x [ i ] [ 0 ] = names [ i ]
		x [ i ] [ 1 ] = marks [ i ] + updates [ i ]
		x [ i ] [ 2 ] = i + 1
	highest = x [ 0 ]
	for j in range ( 1 , n ) :
		if ( x [ j ] [ 1 ] >= highest [ 1 ] ) :
			highest = x [ j ]
	print ( " Name : ▁ " , highest [ 0 ] , " , ▁ Jump : ▁ " , abs ( highest [ 2 ] - 1 ) , sep = " " )
names = [ " sam " , " ram " , " geek " ]
marks = [ 80 , 79 , 75 ]
updates = [ 0 , 5 , - 9 ]
n = len ( marks )
nameRank ( names , marks , updates , n )