Function that only acts on integers in a nested list?

前端 未结 0 1740
太阳男子
太阳男子 2020-12-09 10:20
speed=[[\'Adam\', 50], [\'Bob\', 25], [\'Charlie\', 10]]

def update(lst1):
    nl=[]
    for i in lst1:
        nl.append(i*5)
    return nl

Is the

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