Python - Classes and Object Lifecycle
Given this class:
Which code correctly updates
class Book:
def __init__(self, title, author):
self.title = title
self.author = author
book1 = Book("1984", "Orwell")
book2 = Book("Animal Farm", "Orwell")
# Change author of book2 to "George Orwell"Which code correctly updates
book2 author without affecting book1?