In this article we will see how we can check if some person was part of the movie or not, lot of people work to make a movie and some times we don’t know if a person is in that movie or not, but with the help
in operator we can check.
Implementation steps :
1. Get the movie data with the help of get_movie method
2. Get the person data with the help of get_person method
3. Using in operator check if person was part of movie or not
4. Show the result
Below is the implementation
Udta Punjab Shahid Kapoor =============== Yes!!
3 Idiots Shahid Kapoor =============== No!!
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. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course