Question: python 3, Define theArtistclass in Artist.py with a constructor to initialize an artist's information. The constructor should by default initialize the artist's name to None

python 3,

Define theArtistclass in Artist.py with a constructor to initialize an artist's information. The constructor should by default initialize the artist's name to "None" and the years of birth and death to 0.

Define theArtworkclass in Artwork.py with a constructor to initialize an artwork's information. The constructor should by default initialize the title to "None", the year created to 0, and the artist to use theArtistdefault constructor parameter values. Add an import statement to import theArtistclass.

Add import statements to main.py to import theArtistandArtworkclasses.

Ex: If the input is:

Pablo Picasso 1881 1973 Three Musicians 1921 

the output is:

Artist: Pablo Picasso (1881-1973) Title: Three Musicians, 1921 

If the input is:

Brice Marden 1938 -1 Distant Muses 2000 

the output is:

Artist: Brice Marden, born 1938 Title: Distant Muses, 2000 

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 Programming Questions!