Volume 0%
Press shift question mark to access a list of keyboard shortcuts
میانبرهای صفحه کلید
پخش/توقفSPACE
افزایش صدا
کاهش صدا
پرش به جلو
پرش به عقب
زیرنویس روشن/خاموشc
تمام صفحه/خروج از حالت تمام صفحهf
بی صدا/با صداm
پرش %0-9
00:00
00:00
00:00
 

Mutability revisited - Python 3 Programming Tutorial p.8

۰ نظر گزارش تخلف
یادگیری خوشمزه و فراتر از آن
یادگیری خوشمزه و فراتر از آن

In this part, we're going to revisit the topic of mutable and immutable objects. This concept is masked pretty well in Python, which, like dynamic typing, can be great... or not. It can really bite you one day if you don't have a good understanding of how it works, so let's talk about it.

...

نظرات

در حال حاضر امکان درج نظر برای این ویدیو غیرفعال است.

توضیحات

Mutability revisited - Python 3 Programming Tutorial p.8

۰ لایک
۰ نظر

In this part, we're going to revisit the topic of mutable and immutable objects. This concept is masked pretty well in Python, which, like dynamic typing, can be great... or not. It can really bite you one day if you don't have a good understanding of how it works, so let's talk about it.

Playlist: https://www.youtube.com/playlist?list=PLQVvvaa0QuDeAams7fkdcwOGBpGdHpXln

#python #programming #tutorial

quiz:

x = 1
def test():
x = 2
test()
print(x)


x = 1
def test():
global x
x = 2
test()
print(x)


x = [1]
def test():
x = [2]
test()
print(x)


x = [1]
def test():
global x
x = [2]
test()
print(x)


x = [1]
def test():
x[0] = 2
test()
print(x)

Sign in with GoogleSign in with Google. Opens in new tab