5. Tuples, Lists, Aliasing, Mutability, and Cloning

preview_player
Показать описание
MIT 6.0001 Introduction to Computer Science and Programming in Python, Fall 2016
Instructor: Dr. Ana Bell

In this lecture, Dr. Bell introduces compound data types, such as lists and tuples, and explains the concepts of aliasing, mutability, and cloning.

License: Creative Commons BY-NC-SA
Рекомендации по теме
Комментарии
Автор

pre labeling
​​0:01:27 Content of Lecture05
0:02:32​ New data type : Tuple
0:04:04 tuple slicing
0:05:35 tuple swapping 0:08:00
0:09:09 Manipulating tuples 0:13:00 ​0:12:00
​0:15:31​ New data type : List 0:16:00 0:18:00
0:19:43 Operation on list 0:20:00 ​0:22:00
0:23:15 Operation on list
​0:26:55 convert list to string and back 0:28:00​
0:29:16 Operation on list
0:31:52 ​An analogy
0:34:04 idea of Aliasing ​
0:36:54 Idea of Mutate
​0:38:45​ Nested List
0:40:17 Mutation and iteration try this python tour

flvsedl
Автор

Thank you MIT for providing such invaluable content to the public! Thank you!

frankhuang
Автор

*My takeaways:*
1. Introduce compound data type 1:05: tuple and list.
2. String of a sequence of character data, tuple is a sequence of data in any type 1:35 and is immutable meaning that we cannot change it once we created it.
3. Why we want to use tuple 5:20.
4. List is a sequence of data in any type 14:55 and it mutable.
5. Aliases 34:00.
6. Cloning 35:15.
7. Sorting lists .sort() vs sorted() 36:30.

leixun
Автор

The person that edited this video did not do as well as the other, previous lectures. When she is literally pointing at the board, the person kept showing us video of Ana, as she is directing attention away from her to the slides... And then didn't show the slides after she was done talking. The other videos were all done really well by contrast.

JacobKrajewski
Автор

Thank you MIT, I am a non-IT student and understood everything.You are doing a great Job!! So far completed 2 courses taught by MIT online learned Alot ;)

kararkhan
Автор

Python Tutor is such a good idea, it really helps show the concepts, well worth trying.

percih
Автор

Thank you, Dr. Ana for making OOPs and Inheritance so simple. I could not get concept at first when i was going through MIT 6.00. But now i am equipped with the understanding and assignment problem(6.00) is "walk in the park ".
Thank You. May Cosmos bless you with more knowledge...

aritrachatterjee
Автор

Dr Ana Bell is absolutely phenomenal at what she does. What an amazing explanation again. I can't believe MIT has such high quality content up there available for free.

peqghgk
Автор

Great tutor and lessons however I would like a picture in picture of her and to be able to see what she is pointing at on the screen. hard to follow when you cannot see what she is pointing at.

Iain.G.D.B
Автор

great video. python, while it's syntax is simple, that simplicity in some ways serves to detract from what is actually happening and how things are processed. It's more apparent when you compare python operations to something like that of c++, where you realize how much python does for you. Other than information hiding, it's a lovely language.

TheFootballPlaya
Автор

camera could really focus on the slides a lot more

Liaomiao
Автор

Thank you, Dr. Ana for making this so simple. I could not get concept at first when i was going through MIT 6.00. But now i am equipped with the understanding and assignment problem(6.00) is "walk in the park ".
Thank You. May Cosmos bless you with more knowledge...

aritrachatterjee
Автор

Good lectures, clear slides and Dr. Ana Bell very, very good professor .
Tanks MIT to give us thats extraordinarys open courses .

jaimemontero
Автор

camera needs to focus more on the board so we can see what she's talking about rather than just seeing her without the content. It's annoying sometimes

hamids
Автор

Thanks for the video. It really helps me to fully understand the difference between a tuple and a list.

jasonzhang
Автор

Ana explains all the theory very clear. Already knew most of the python she explains but it still helped me understand the big picture of programming

joost
Автор

I like this lectures. High level of education. Thanks :)

woltrono
Автор

When she's talking about the contents on the projector screen, can you show more of the screen?

sapphirelovespj
Автор

Very helpful video indeed. Please show the slide always. Preferably, the slide and the professor together, maybe as picture in picture.

rajeswarynarasimman
Автор

I have two questions:
1. How do I create a tuple, e.g. ((1, a) (2, b) (3, c)), without manually inputting values?
2. I can't figure out how to return an updated list from a function. Every time said function takes in a new input, all old values of local variables are forgotten and a new list is returned instead of an updated one.

These questions are in regard to problem sheet 2 - Hangman.

Any advice would be greatly appreciated!

Pkmafffy