Cleaning repeat dataset

Please I need an explanation on the statement
'if name in review_max and review_max[name] < reviews:
review_max[name] = n_reviews
elif name not in review_max :slight_smile:
review_max[name] = n_reviews ’ in the picture
and creating two empty lists in the the other picture can i get a better explanation of this here please.
Thanks

Hey there @amosdaramola956! There was another student who had a similar question about building that dictionary and I wrote about it in another post. Check that post out, and see if it helps. If you’re still confused, post again here to get additional clarification and we’ll see how we can help!