Question: How will you modify the code below if you want to include a year of publication in the output? class MyFirstClass ( ) : print

How will you modify the code below if you want to include a year of publication in the output? class MyFirstClass
(
)
:
print
(
"
Who wrote this?"
)
index
=
"Author
-
Book"
def hand
_
list
(
self
,
philosopher, book
)
:
print
(
MyFirstClass
.
index
)
print
(
philosopher
+
"
wrote the book:
"
+
book
)
whodunnit
=
MyFirstClass
(
)
whodunnit.hand
_
list
(
"
Sun Tzu", "The Art of War"
)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!