Academy for Academic Education

Python Classroom Series – 01/Jun/2021

Sets

  • A set is collection of unique values

  • Refer Here for the jupyter notebook

  • Updating set with multiple elements

set1 = set([1,2,3])
set1.update([4,5])
print(set1)
  • Data Structures So Far
    • A list can be created by using []
    • A tuple by using parenthesis ()
    • A dictionary or set with {}

Problem to be solved

  • Create a new folder

  • Open vs code in that code

  • Create a file called as main.py and copy the contents from Refer Here

  • Download reviews.csv Refer Here

  • Enhance the code to print the users who have reviewed the code

  • Enhance the code to printing listings that were reviewed

  • Enhance the code to print the count of reviews per listing

Exit mobile version