Using For Loop to detect the larger number in a list and add it to a new list

前端 未结 0 921
暗喜
暗喜 2021-01-07 03:33
def larger_sum(lst1, lst2):
  new_list = []
  for i in range(len(lst1)):
    for e in range(len(lst2)):
      if lst1[i]>lst2[i]:
       new_list.append(lst1[i])
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题