Lecture 10: Lists and Mutability (FIXED)

  Рет қаралды 3,387

MIT OpenCourseWare

MIT OpenCourseWare

Ай бұрын

MIT 6.100L Introduction to CS and Programming using Python, Fall 2022
Instructor: Ana Bell
View the complete course: ocw.mit.edu/courses/6-100l-in...
KZfaq Playlist: • MIT 6.100L Introductio...
This lecture explores list operations and mutability: mutation, aliasing, and tricky examples with loops over L. Lists and tuples provide a way to organize data that naturally supports iterative functions. Tuples are useful when you have data that doesn’t need to change, e.g., (latitude, longitude) or (page #, line #). Lists are useful in dynamic situations, e.g., a list of daily top 40 songs or a list of recently watched movies.
License: Creative Commons BY-NC-SA
More information at ocw.mit.edu/terms
More courses at ocw.mit.edu
Support OCW at ow.ly/a1If50zVRlQ
We encourage constructive comments and discussion on OCW’s KZfaq and other social media channels. Personal attacks, hate speech, trolling, and inappropriate comments are not allowed and may be removed. More details at ocw.mit.edu/comments.

Пікірлер: 4
@mitocw
@mitocw Ай бұрын
NOTE: The audio problems have been fixed!
@mohamedbelazreg9949
@mohamedbelazreg9949 Ай бұрын
Thank you MIT!, Thank to you Dr.Ana Bell, Thank you Internet ! And thank you KZfaq.
@pascalpascal767
@pascalpascal767 7 күн бұрын
Excellent lecture. Thanks=[ ‘A Lot !’] The mystery of tricky mutable objets is revealed. Thanks.append(Thanks)
@lisastegnii50
@lisastegnii50 5 күн бұрын
I love how my questions aka “can’t we just type ... though?” get answered on the upcoming slide 😂 Feels like I literally do ask them in person
Lecture 11: Aliasing and Cloning
46:17
MIT OpenCourseWare
Рет қаралды 3,9 М.
Can You Draw The PERFECT Circle?
00:57
Stokes Twins
Рет қаралды 90 МЛН
КАК СПРЯТАТЬ КОНФЕТЫ
00:59
123 GO! Shorts Russian
Рет қаралды 2,6 МЛН
Nested loops in Python are easy ➿
5:35
Bro Code
Рет қаралды 253 М.
7. Testing, Debugging, Exceptions, and Assertions
41:33
MIT OpenCourseWare
Рет қаралды 177 М.
Does a rolling wheel use static friction or kinetic friction?
1:14
Introduction to GIS, Part I: Key Concepts
7:10
MIT OpenCourseWare
Рет қаралды 6 М.
Mathematics II 86148-01
Physics Department Bar Ilan
Рет қаралды 3
Lecture 9: Lambda Functions, Tuples, and Lists
45:26
MIT OpenCourseWare
Рет қаралды 6 М.
While loops in Python are easy ♾️
6:58
Bro Code
Рет қаралды 301 М.
#8 Type Conversion in Java
12:33
Telusko
Рет қаралды 200 М.
Can You Draw The PERFECT Circle?
00:57
Stokes Twins
Рет қаралды 90 МЛН