11.7k views
0 votes
For any element in keyslist with a value greater than 100, print the corresponding value in items list, followed by a space. ex: if keyslist = {42, 105, 101, 100} and items list = {10, 20, 30, 40}, print: 20 30 since keyslist[1] and keyslist[2] have values greater than 100, the value of itemslist[1] and itemslist[2] are printed.

1 Answer

3 votes
for i in range( len( keyslist ) ):
if( keyslist[ i ] > 100 ):
print( "%d " % itemslist[ i ]
User Jiselle
by
8.4k points