Vladimir

5%
Flag icon
Beware of expressions like a * n when a is a sequence containing mutable items, because the result may surprise you. For example, trying to initialize a list of lists as my_list = [[]] * 3 will result in a list with three references to the same inner list, which is probably not what you want.
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview