8000 different example on 06 · georgecms/complete-python-course@cbd5450 · GitHub
[go: up one dir, main page]

Skip to content

Commit cbd5450

Browse files
committed
different example on 06
1 parent f14e04e commit cbd5450

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

course_contents/1_intro/notes/06. Identity Operators.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ print(id(users_copy)) # 2425142160952
1111
1212
print(users_copy is users) # True
1313
14-
users_copy = users[:]
14+
users_copy = ['James', 'Charlie', 'Ana']
1515
print(id(users_copy)) # 2425142558551
1616
1717
print(users_copy is users) # False
@@ -30,7 +30,7 @@ print(id(users_copy)) # 2425142160952
3030
3131
print(users_copy is users) # False
3232
33-
users_copy = users[:]
33+
users_copy = ['James', 'Charlie', 'Ana']
3434
print(id(users_copy)) # 2425142558551
3535
3636
print(users_copy is users) # True

0 commit comments

Comments
 (0)
0