In this article we will see how we get the birth date of any person, we can get retrieve the person data with the help of
get_person method by passing the person id.
get_person method returns a imdb Person object which can be used as a dictionary i.e. they can be queried by giving the key of the data, here key will be birth date.
Syntax : person[‘birth date’]
Here person is the Person object return by the get_person method.
Return : It return string which is birth date.
Below is the implementation.
Nawazuddin Siddiqui 1974-05-19
Keanu Reeves 1964-09-02
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.