Quotes help make search much faster. Example: "Practice Makes Perfect"

Saturday, December 8, 2012

LearnStreet Python Lesson 6 Exercise 12


#solution provided by LearnStreet

# assume lst is a list and tup is a tuple
def run(lst, tup):    
    if lst[1] == tup[1]:        
        return tuple(lst) == tup    
    else:        
        return "not equal"

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts