>>> from theatre import theatre >>> lplays1 = [['Mary Poppins', 414, 232, 119], ... ['Les Miserables', 401, 402, 481, 422, 455, 398], ... ['The Great Gatsby', 212, 132, 167, 176], ... ['Good', 98, 145, 198, 101], ... ['Frozen', 356, 342, 289, 456, 432, 388], ... ['Skyfall', 209, 231, 235, 198, 223]] >>> theatre(lplays1, 478, 60) ['Mary Poppins', 'The Great Gatsby', 'Good', 'Skyfall'] >>> theatre(lplays1, 478, 80) ['Mary Poppins', 'The Great Gatsby', 'Good', 'Frozen', 'Skyfall'] >>> theatre(lplays1, 478, 40) ['The Great Gatsby', 'Good'] >>> lplays2 = [['The Lion King', 321, 409, 323, 234], ... ['Mary Poppins', 414, 232, 118], ... ['The Mousetrap', 101, 201, 112, 115, 209, 201], ... ['Nutcracker', 399, 387, 489, 451, 472], ... ['Frozen', 356, 342, 289, 456, 432, 388], ... ['Skyfall', 209, 231, 235, 198, 223], ... ['Gloriana', 156, 187, 206, 213, 267, 133], ... ['Cages', 99, 101, 187, 156], ... ['Mamma Mia', 401, 430, 451, 467, 423, 456], ... ['TINA', 456, 398, 386, 423, 467], ... ['The Great Gatsby', 212, 132, 167, 176], ... ['Les Miserables', 401, 402, 481, 422, 455, 398], ... ['The Importance of Being Earnest', 456, 478, 245, 222, 498], ... ['Good', 98, 145, 198, 101]] >>> theatre(lplays2, 478, 60) ['Mary Poppins', 'The Mousetrap', 'Skyfall', 'Gloriana', 'Cages', 'The Great Gatsby', 'Good'] >>> theatre(lplays2, 478, 80) ['The Lion King', 'Mary Poppins', 'The Mousetrap', 'Frozen', 'Skyfall', 'Gloriana', 'Cages', 'The Great Gatsby', 'The Importance of Being Earnest', 'Good'] >>> theatre(lplays2, 478, 40) ['The Mousetrap', 'Cages', 'The Great Gatsby', 'Good'] >>> theatre(lplays2, 478, 30) ['Cages', 'Good']