Created
          February 20, 2019 12:09 
        
      - 
      
- 
        Save mrroot5/b890ae5573f2d4f22d2b6d729e819a78 to your computer and use it in GitHub Desktop. 
    Número mínimo de una lista de python
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | from copy import deepcopy | |
| def min_n(lst, n=1): | |
| numbers = deepcopy(lst) | |
| numbers.sort() | |
| return numbers[:n] | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment