Why is this returning two values? Easy python beginner
Question: Can someone please explain why my enter method in the following class is
returning two values? I'm learning python and in the process of creating a
simple game to grasp OOP and classes. Anyhow I need the enter method to return
a random snippet from the snippets list. But I keep getting two snippets
instead of one. Can someone explain why?

    
    
        from sys import exit
        from random import randint
    
    
    
    
      class Island(object):
    
        def enter(self):
         pass
    
    
    
      class Loser(Island):
        snippets = ["Welcome to loser Island",
                "Can't win them all", 
                "There's always next time"]             
       def enter(self): 
          print Loser.snippets[randint(0,len(self.snippets)-1)]
    
    
    
      loser_test = Loser()
      loser_test.enter()
    


Answer: Why don't you just use
[`random.choice`](https://docs.python.org/3/library/random.html#random.choice)

    
    
    def enter(self): 
        print random.choice(self.snippets)
    

