COMPSCI 61A Lecture 13: Containers
COMPSCI 61A verified notes
13/20View all
Document Summary
Ai moving into the physical world and manipulating. Find your score for hog on ok. Next project is maps, no partner allowed. Submit a day early to get one extra credit point. Create a recommendation service for restaurants, like yelp based on campus locations. Dots and clusters and color represents different areas of campus and based on the user"s ratings and automatically uses k-means algorithm (done for you) Will change depending on the user"s preferences and can have different users. Ex: list_name = [1, 2, 34, 5] creates a list called list_name containing four elements. Get length of the list using len(list_name) Same works for multiplying a list will get that list repeated multiple times within that list. Nested lists = when an element of a list is another list. Get a certain item from a list using list_name[1] returns 2. Index starts at 0 so list_name[0] = 1. Built in operators to use on a container.