COMPSCI 61A Lecture 13: Containers

60 views4 pages
Verified Note

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents