Question
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
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
340266.1976050.qx3zqy7
LABACTIVITY
2.15.1:LAB: Artwork label (modules)
0/10
Current file:
main.py
arrow_drop_down
Load default template...
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started