Would this be the correct way to search from the end of a Python list using a function?

后端 未结 0 1829
慢半拍i
慢半拍i 2020-12-05 04:34

Suppose we have this function:

def search(ls, e):
    \'\'\'Assumes ls is a list.
    Returns True if e is in ls, False otherwise.\'\'\'
    
    for i in rev         


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