This one here is a list and now it is a tuple.
So a tuple is just like a
list, but with parentheses, not square brackets.
If you print it out, of course you'd
get the same representation as in here.
So 1, 4, 5, 1, 4, 5.
However, the brackets, the parentheses is not
the only difference between lists and tuples.
In fact, this is just a difference in syntax.
The real difference there is that tuples such
as this one in here are immutable and
lists such as this one
[No audio]
are mutable.
What that means is that the list monday_temperatures2,
you can add more items to
the list using for example the append method.
So if you check monday_temperatures
now you get a list mutated.
This mutability makes list very dynamic.
You'll see later how when we do these
batch operations and in each operation we are
adding items to the list as we generate
those items, those values with some functions.
But this is not the case with tuples.
If you try to append in a tuple,
you'll get an error because the tuple doesn't
actually have an append method at all.
Likewise, it doesn't have a remove method,
[No audio]
like the list does.
[No audio]
So four is not there anymore.
Tuples, however, have the advantage that they
are a bit faster than lists.
But you should think what to use.
So whether to use lists or tuples, you should think
if the array you are creating is going to be
changed during the course of the program or not.
So for now, I'm not going deeper into tuples and
lists, but when we create these ten applications during the
course, you will understand the main differences between the two
by seeing how they work in real programs.
[Outro sound]