<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>11AB2_Những cô nàng xinh đẹp by BAO NGOC</title>
      <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2023-03-20 08:31:51 UTC</pubDate>
      <lastBuildDate>2025-12-03 23:35:09 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url>https://padlet.net/icons/png/1f48b.png</url>
      </image>
      <item>
         <title>CÁCH KHAI BÁO </title>
         <author>phuonguyensue</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2523202315</link>
         <description><![CDATA[<div>1. TUPLE<br>cách làm giống List, thay ngoặc vuông bằng <strong>ngoặc tròn</strong></div><pre>friends = ("Rolf","Bob","Anne")</pre><div><br></div><pre>friends = "Rolf",</pre><div>*Chú ý dấu phẩy, nếu không có dấu phẩy thì đây là định nghĩa một chuỗi.<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-20 08:52:09 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2523202315</guid>
      </item>
      <item>
         <title>HÀM cmp (tuple1, tuple2)</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2523205689</link>
         <description><![CDATA[<div><strong><mark>so sánh 2 tuple với nhau</mark></strong><strong><br>1️⃣ </strong>MIÊU TẢ</div><div>Phương thức <strong>cmp()</strong> so sánh các phần tử của hai Tuple.<br><br></div><div>2️⃣ CÚ PHÁP</div><div>Cú pháp của <strong>cmp()</strong> trong Python:<br><br></div><pre>cmp(tuple1, tuple2)</pre><div>Chi tiết về tham số:<br><br></div><ul><li><strong>tuple1</strong> -- Đây là Tuple đầu tiên để được so sánh.</li><li><strong>tuple2</strong> -- Đây là Tuple thứ hai để được so sánh.</li></ul><div>3️⃣ TRẢ VỀ GIÁ TRỊ</div><div>Nếu các phần tử là cùng kiểu, thực hiện so sánh và trả về giá trị. Nếu các phần tử là khác kiểu, kiểm tra xem chúng có là số hay không.<br><br></div><ul><li>Nếu là các số thì thực hiện phép so sánh.</li><li>Nếu một trong các phần tử là số, thì phần tử khác là "lớn hơn" (các số là "nhỏ hơn").</li><li>Nếu không, các kiểu được xếp theo thứ tự chữ cái.</li></ul><div>4️⃣ VÍ DỤ</div><div>Ví dụ sau minh họa cách sử dụng của cmp() trong Python.<br><br></div><pre> 

tuple1, tuple2 = (123, 'xyz'), (456, 'abc')

print cmp(tuple1, tuple2)
print cmp(tuple2, tuple1)
tuple3 = tuple2 + (786,);
print cmp(tuple2, tuple3)</pre><div><br></div><pre>Chạy chương trình Python trên sẽ cho kết quả <pre>-1
1
-1</pre></pre>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-20 08:55:26 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2523205689</guid>
      </item>
      <item>
         <title>HÀM len()</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2525580198</link>
         <description><![CDATA[<div><strong>MIÊU TẢ</strong></div><div>Phương thức <strong>len()</strong> trả về số phần tử trong Tuple.<br><br></div><div><strong>CÚ PHÁP</strong></div><div>Cú pháp của <strong>len()</strong> trong Python:</div><pre>len(tuple)</pre><div>Chi tiết về tham số:</div><ul><li><strong>tuple</strong> -- Đây là một Tuple.</li></ul><div><br></div><div><strong>TRẢ VỀ GIÁ TRỊ</strong></div><div>Phương thức này trả về số phần tử trong Tuple.<br><br><strong>VÍ DỤ</strong></div><div>Ví dụ sau minh họa cách sử dụng của len() trong Python.<br><br></div><pre> 

tuple1, tuple2 = (123, 'xyz', 'hoang'), (456, 'abc')

print "Tuple thu nhat co do dai la : ", len(tuple1)
print "Tuple thu hai co do dai la : ", len(tuple2)</pre><div>Chạy chương trình Python trên sẽ cho kết quả −<br><br></div><pre>Tuple thu nhat co do dai la :  3
Tuple thu hai co do dai la :  2</pre>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-21 15:14:34 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2525580198</guid>
      </item>
      <item>
         <title>HÀM (max)</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526797797</link>
         <description><![CDATA[<div>Miêu tả</div><div>Phương thức <strong>max()</strong> trả về phần tử có giá trị lớn nhất từ một tuple đã cho.<br><br></div><div>Cú pháp</div><div>Cú pháp của <strong>max()</strong> trong Python:<br><br></div><pre>max(tuple)</pre><div>Chi tiết về tham số:<br><br></div><ul><li><strong>tuple</strong> -- Đây là một Tuple.</li></ul><div>Trả về giá trị</div><div>Trả về item có giá trị lớn nhất từ một tuple đã cho.<br><br></div><div>Chương trình Python ví dụ</div><div>Ví dụ sau minh họa cách sử dụng của max() trong Python.<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 08:37:55 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526797797</guid>
      </item>
      <item>
         <title>BÀI 1 (ez)</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526801245</link>
         <description><![CDATA[<div>Đề: Viết chương trình tạo và xuất cấu trúc dữ liệu set&nbsp;<br>Giải</div><pre>print("Create a new set:")<br>x = set()<br>print(x)</pre><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 08:41:05 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526801245</guid>
      </item>
      <item>
         <title>BÀI 2 (med)</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526818261</link>
         <description><![CDATA[<div>Đề: Viết chương trình thêm và loại bỏ 1 phần tử tự chọn của cấu trúc dữ liệu set cho sẵn<br>Giải:</div><pre>thisset = {"chuối", "táo", "cherry"}
thisset.add(input('thêm trái cây vào '))
thisset.remove(input("bỏ trái cây không thích "))
print(thisset)</pre><div><br></div><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 08:56:22 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526818261</guid>
      </item>
      <item>
         <title>BÀI 3 (DIF)</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526838769</link>
         <description><![CDATA[<div>Đề: tạo 2 tập hợp màu sắc 2 bạn A và B yêu thích, tìm ra các màu sắc chỉ một bạn yêu thích.</div><pre>set1 = set()
set2 = set()
set1.add(input('màu sắc 1 A thích '))
set1.add(input('màu sắc 2 A thích '))
set1.add(input('màu sắc 3 A thích '))
set1.add(input('màu sắc 4 A thích '))
set1.add(input('màu sắc 5 A thích '))
set2.add(input('màu sắc 1 B thích '))
set2.add(input('màu sắc 2 B thích '))
set2.add(input('màu sắc 3 B thích '))
set2.add(input('màu sắc 4 B thích '))
set2.add(input('màu sắc 5 B thích '))
set3 = set1.symmetric_difference(set2)
print (set3)</pre>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:16:23 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526838769</guid>
      </item>
      <item>
         <title>HÀM (min)</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526840690</link>
         <description><![CDATA[<div>MIÊU TẢ</div><div>Phương thức <strong>min()</strong> trả về phần tử có giá trị nhỏ nhất từ một tuple đã cho.<br><br></div><div>CÚ PHÁP</div><div>Cú pháp của <strong>min()</strong> trong Python:<br><br></div><pre>min(tuple)</pre><div>Chi tiết về tham số:<br><br></div><ul><li><strong>tuple</strong> -- Đây là một Tuple.</li></ul><div>TRẢ VỀ GIÁ TRỊ</div><div>Trả về item có giá trị nhỏ nhất từ một tuple đã cho.<br><br>VÍ DỤ</div><div>Ví dụ sau minh họa cách sử dụng của min() trong Python.<br><br></div><pre> 

tuple1, tuple2 = (123, 'xyz', 'hoang', 'abc'), (456, 700, 200)

print "Phan tu co gia tri nho nhat la : ", min(tuple1)
print "Phan tu co gia tri nho nhat la : ", min(tuple2)</pre><div>Chạy chương trình Python trên sẽ cho kết quả −<br><br></div><pre>Phan tu co gia tri nho nhat la :  123
Phan tu co gia tri nho nhat la :  200</pre><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:18:10 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526840690</guid>
      </item>
      <item>
         <title>HÀM tuple (seq)</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526842262</link>
         <description><![CDATA[<div>MIÊU TẢ</div><div>Phương thức <strong>tuple()</strong> chuyển đổi một dãy các phần tử thành tuple<br>CÚ PHÁP</div><div>Cú pháp của <strong>tuple()</strong> trong Python:<br><br></div><pre>tuple( seq )</pre><div>Chi tiết về tham số:<br><br></div><ul><li><strong>seq</strong> -- Đây là dãy các phần tử để được chuyển đổi thành tuple.</li></ul><div>TRẢ VỀ GIÁ TRỊ</div><div>Phương thức này trả về Tuple.<br><br>VÍ DỤ</div><div>Ví dụ sau minh họa cách sử dụng của tuple() trong Python.<br><br></div><pre> 

aList = (123, 'xyz', 'hoang', 'abc');
aTuple = tuple(aList)

print "Cac phan tu cua Tuple : ", aTuple</pre><div>Chạy chương trình Python trên sẽ cho kết quả −<br><br></div><pre>Cac phan tu cua Tuple :  (123, 'xyz', 'hoang', 'abc')</pre><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:19:36 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526842262</guid>
      </item>
      <item>
         <title>TOÁN TỬ</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526844578</link>
         <description><![CDATA[<div>Giống như String và List, bạn cũng có thể sử dụng toán tử nối + và toán tử lặp * với tuple. Điểm khác biệt là nó tạo ra một tuple mới, không tạo ra một chuỗi hay list.<br><br></div><div>Ví dụ cho toán tử +:<br><br></div><pre>data1=(1,2,3,4)
data2=('x','y','z')
data3=data1+data2
print data1
print data2
print data3
<br></pre><div>Kết quả là:<br><br></div><pre>&gt;&gt;&gt; 
(1, 2, 3, 4)
('x', 'y', 'z')
(1, 2, 3, 4, 'x', 'y', 'z')
&gt;&gt;&gt;
<br></pre><div><strong>Ghi chú</strong>: Dãy mới được tạo là một Tuple mới.<br><br></div><div>Ví dụ cho toán tử +:<br><br></div><pre>tuple1=(10,20,30);
tuple2=(40,50,60);
print tuple1*2
print tuple2*3
<br></pre><div>Kết quả là:<br><br></div><pre>&gt;&gt;&gt; 
(10, 20, 30, 10, 20, 30)
(40, 50, 60, 40, 50, 60, 40, 50, 60)
&gt;&gt;&gt;</pre>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:21:32 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526844578</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC count(.).</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526847555</link>
         <description><![CDATA[<pre>thistuple = (1, 3, 7, 8, 7, 5, 4, 6, 8, 5)<br><br>x = thistuple.count(5)<br><br>print(x)</pre>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:23:51 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526847555</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC index(.).</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526848478</link>
         <description><![CDATA[<div><br>Search for the first occurrence of the value 8, and return its position:<br><br></div><pre>thistuple = (1, 3, 7, 8, 7, 5, 4, 6, 8, 5)<br><br>x = thistuple.index(8)<br><br>print(x)</pre>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:24:37 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526848478</guid>
      </item>
      <item>
         <title>HÀM cmp(dict1, dict2)</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526852088</link>
         <description><![CDATA[<div>MIÊU TẢ</div><div>Phương thức <strong>cmp()</strong> so sánh hai Dictionary dựa trên key và value.<br><br></div><div>CÚ PHÁP</div><div>Cú pháp của <strong>cmp()</strong> trong Python:<br><br></div><pre>cmp(dict1, dict2)</pre><div>Chi tiết về tham số:<br><br></div><ul><li><strong>dict1</strong> -- Đây là Dictionary đầu tiên để được so sánh với dict2.</li><li><strong>dict2</strong> -- Đây là Dictionary thứ hai để được so sánh với dict1.</li></ul><div><br></div><div>TRẢ VỀ GIÁ TRỊ</div><div>Trả về 0 nếu cả hai Dictionary là cân bằng, -1 nếu dict1 &lt; dict2 và 1 nếu dict1 &gt; dic2.<br><br></div><div>VÍ DỤ</div><div>Ví dụ sau minh họa cách sử dụng của cmp() trong Python.<br><br></div><pre> 

dict1 = {'Ten': 'Hoang', 'Tuoi': 7};
dict2 = {'Ten': 'Nam', 'Tuoi': 27};
dict3 = {'Ten': 'Huong', 'Tuoi': 27};
dict4 = {'Ten': 'Hoang', 'Tuoi': 7};
print "Gia tri tra ve : %d" %  cmp (dict1, dict2)
print "Gia tri tra ve : %d" %  cmp (dict2, dict3)
print "Gia tri tra ve : %d" %  cmp (dict1, dict4)</pre><div>Chạy chương trình Python trên sẽ cho kết quả −<br><br></div><pre>Gia tri tra ve : -1
Gia tri tra ve : 1
Gia tri tra ve : 0</pre>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:27:50 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526852088</guid>
      </item>
      <item>
         <title>HÀM len(dict)</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526853661</link>
         <description><![CDATA[<div>MIÊU TẢ</div><div>Phương thức <strong>len()</strong> trả về độ dài của Dictionary. Độ dài này là tương đương với số phần tử trong Dictionary.<br><br>CÚ PHÁP</div><div>Cú pháp của <strong>len()</strong> trong Python:<br><br></div><pre>len(dict)</pre><div>Chi tiết về tham số:<br><br></div><ul><li><strong>dict</strong> -- Đây là Dictionary bạn cần tính độ dài.</li></ul><div><br>TRẢ VỀ GIÁ TRỊ</div><div>Phương thức này trả về độ dài của Dictionary.<br><br></div><div>VÍ DỤ</div><div>Ví dụ sau minh họa cách sử dụng của len() trong Python.<br><br></div><pre> 

dict = {'Ten': 'Hoang', 'Tuoi': 20};
print "Do dai cua dict la : %d" % len (dict)</pre><div>Chạy chương trình Python trên sẽ cho kết quả −<br><br></div><pre>Do dai cua dict la : 2</pre>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:29:11 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526853661</guid>
      </item>
      <item>
         <title>HÀM str()</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526855459</link>
         <description><![CDATA[<div>MIÊU TẢ</div><div>Phương thức <strong>str()</strong> ạo ra một biểu diễn chuỗi có thể in được của một Dictionary.<br><br></div><div>CÚ PHÁP</div><div>Cú pháp của <strong>str()</strong> trong Python:<br><br></div><pre>str(dict)</pre><div>Chi tiết về tham số:<br><br></div><ul><li><strong>dict</strong> -- Đây là Dictionary.</li></ul><div>TRẢ VỀ GIÁ TRỊ</div><div>Phương thức này trả về biểu diễn chuỗi.<br>VÍ DỤ</div><div>Ví dụ sau minh họa cách sử dụng của str() trong Python.<br><br></div><pre>dict = {'Ten': 'Hoang', 'Tuoi': 20};
print "Bieu dien chuoi tuong duong la : %s" % str (dict)</pre><div><br>Chạy chương trình Python trên sẽ cho kết quả −<br><br></div><pre>Bieu dien chuoi tuong duong la : {'Tuoi': 20, 'Ten': 'Hoang'}</pre><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:30:45 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526855459</guid>
      </item>
      <item>
         <title>HÀM str(dict)</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526858372</link>
         <description><![CDATA[<div>1️⃣ MIÊU TẢ</div><div>Phương thức <strong>type()</strong> trả về kiểu của biến đã truyền. Nếu biến đã truyền là Dictionary, thì nó sẽ trả về một kiểu Dictionary.<br><br></div><div>2️⃣ CÚ PHÁP</div><div>Cú pháp của <strong>type()</strong> trong Python:<br><br></div><pre>type(dict)</pre><div>Chi tiết về tham số:<br><br></div><ul><li><strong>dict</strong> -- Đây là Dictionary.</li></ul><div>3️⃣ TRẢ VỀ GIÁ TRỊ</div><div>Phương thức này trả về kiểu của biến đã truyền.<br>4️⃣ VÍ DỤ</div><div>Ví dụ sau minh họa cách sử dụng của type() trong Python.<br><br></div><pre> 

dict = {'Ten': 'Hoang', 'Tuoi': 20};
print "Kieu bien da truyen la : %s" %  type (dict)</pre><div>Chạy chương trình Python trên sẽ cho kết quả −<br><br></div><pre>Kieu bien da truyen la : &lt;type 'dict'&gt;</pre><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:33:16 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526858372</guid>
      </item>
      <item>
         <title>HÀM type(variable)</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526859624</link>
         <description><![CDATA[<div>MIÊU TẢ</div><div>Phương thức <strong>type()</strong> trả về kiểu của biến đã truyền. Nếu biến đã truyền là Dictionary, thì nó sẽ trả về một kiểu Dictionary.<br><br></div><div>CÚ PHÁP</div><div>Cú pháp của <strong>type()</strong> trong Python:<br><br></div><pre>type(dict)</pre><div>Chi tiết về tham số:<br><br></div><ul><li><strong>dict</strong> -- Đây là Dictionary.</li></ul><div>TRẢ VỀ GIÁ TRỊ</div><div>Phương thức này trả về kiểu của biến đã truyền.<br>VÍ DỤ</div><div>Ví dụ sau minh họa cách sử dụng của type() trong Python.<br><br></div><pre> 

dict = {'Ten': 'Hoang', 'Tuoi': 20};
print "Kieu bien da truyen la : %s" %  type (dict)</pre><div>Chạy chương trình Python trên sẽ cho kết quả −<br><br></div><pre>Kieu bien da truyen la : &lt;type 'dict'&gt;</pre><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:34:24 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526859624</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC dict.clear()</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526862306</link>
         <description><![CDATA[<div><br>Miêu tả</div><div>Phương thức <strong>clear()</strong> xóa tất cả phần tử của Dictionary.<br><br></div><div>Cú pháp</div><div>Cú pháp của <strong>clear()</strong> trong Python:<br><br></div><pre>dict.clear()</pre><div>Chi tiết về tham số:<br><br></div><ul><li><strong>NA</strong></li></ul><div>Trả về giá trị</div><div>Phương thức này không trả về bất cứ giá trị nào.<br>Chương trình Python ví dụ</div><div>Ví dụ sau minh họa cách sử dụng của clear() trong Python.<br><br></div><pre> 

dict = {'Ten': 'Hoang', 'Tuoi': 20};

print "Do dai ban dau : %d" %  len(dict)
dict.clear()
print "Do dai sau khi xoa la : %d" %  len(dict)</pre><div>Chạy chương trình Python trên sẽ cho kết quả −<br><br></div><pre>Do dai ban dau : 2
Do dai sau khi xoa la : 0</pre>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:36:44 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526862306</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC dict.copy()</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526864038</link>
         <description><![CDATA[<div>MIÊU TẢ</div><div>Phương thức <strong>copy()</strong> trả về bản sao của Dictionary.<br>CÚ PHÁP</div><div>Cú pháp của <strong>copy()</strong> trong Python:<br><br></div><pre>dict.copy()</pre><div>Chi tiết về tham số:<br><br></div><ul><li><strong>NA</strong></li></ul><div>TRẢ VỀ GIÁ TRỊ</div><div>Trả về bản sao của Dictionary.<br>VÍ DỤ</div><div>Ví dụ sau minh họa cách sử dụng của copy() trong Python.<br><br></div><pre> 

dict1 = {'Ten': 'Hoang', 'Tuoi': 20};

dict2 = dict1.copy()
print "Dictionary moi co dang : %s" %  str(dict2)</pre><div>Chạy chương trình Python trên sẽ cho kết quả −<br><br></div><pre>Dictionary moi co dang : {'Tuoi': 20, 'Ten': 'Hoang'}</pre>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:38:07 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526864038</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC fromkeys()</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526869391</link>
         <description><![CDATA[<div>MIÊU TẢ</div><div>Phương thức <strong>fromkeys()</strong> được sử dụng để tạo một Dictionary mới từ dãy seq và value1. Trong đó dãy seq tạo nên các key và tất cả các key chia sẻ các giá trị từ value1. Trong trường hợp value1 không được cung cấp thì value của các key được thiết lập là None.<br><br></div><div>CÚ PHÁP</div><div>Cú pháp của <strong>fromkeys()</strong> trong Python:<br><br></div><pre>dict.fromkeys(seq[, value]))</pre><div><br>Chi tiết về tham số:<br><br></div><ul><li><strong>seq</strong> -- Đây là danh sách các value mà sẽ được sử dụng cho key trong Dictionary.</li><li><strong>value</strong> -- Tham số này là tùy ý, nếu được cung cấp thì value sẽ được thiết lập theo tham số này.</li></ul><div>Trả về giá trị</div><div>Phương thức này trả về List.<br><br></div><div>Chương trình Python ví dụ</div><div>Ví dụ sau minh họa cách sử dụng của fromkeys() trong Python.<br><br></div><pre> 

seq = ('ten', 'tuoi', 'gioitinh')

dict = dict.fromkeys(seq)
print "Dictionary moi co dang : %s" %  str(dict)

dict = dict.fromkeys(seq, 2)
print "Dictionary moi co dang : %s" %  str(dict)</pre><div>Chạy chương trình Python trên sẽ cho kết quả −<br><br></div><pre>Dictionary moi co dang : {'tuoi': None, 'ten': None, 'gioitinh': None}
Dictionary moi co dang : {'tuoi': 2, 'ten': 2, 'gioitinh': 2}</pre><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:42:36 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526869391</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC (get)</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526872805</link>
         <description><![CDATA[<div>Miêu tả</div><div>Phương thức <strong>get()</strong> trả về giá trị của key đã cho. Nếu key không có mặt thì phương thức này trả về None.<br><br></div><div>Cú pháp</div><div>Cú pháp của <strong>get()</strong> trong Python:<br><br></div><pre>dict.get(key, default=None)</pre><div>Chi tiết về tham số:<br><br></div><ul><li><strong>key</strong> -- Đây là key để được tìm trong Dictionary.</li><li><strong>default</strong> -- Đây là giá trị được trả về trong trường hợp key không tồn tại.</li></ul><div>Trả về giá trị</div><div>Trả về giá trị của key đã cho. Nếu key không có mặt thì phương thức này trả về None.<br><br></div><div>Chương trình Python ví dụ</div><div>Ví dụ sau minh họa cách sử dụng của get() trong Python.<br><br></div><pre> 

dict = {'Ten': 'Hoang', 'Tuoi': 27}

print "Gia tri cua key da cho la : %s" %  dict.get('Tuoi')
print "Gia tri cua key da cho la : %s" %  dict.get('Gioitinh', "Never")</pre><div>Chạy chương trình Python trên sẽ cho kết quả −<br><br></div><pre>Gia tri cua key da cho la : 27
Gia tri cua key da cho la : Never</pre>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:45:36 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526872805</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC has_key()</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526876272</link>
         <description><![CDATA[<div>Miêu tả</div><div>Phương thức <strong>has_key()</strong> trả về true nếu key là có mặt trong Dictionary, nếu không là false.<br><br></div><div>Cú pháp</div><div>Cú pháp của <strong>has_key()</strong> trong Python:<br><br></div><pre>dict.has_key(key)</pre><div>Chi tiết về tham số:<br><br></div><ul><li><strong>key</strong> -- Đây là key để được tìm trong Dictionary.</li></ul><div>Trả về giá trị</div><div>Trả về true nếu key là có mặt trong Dictionary, nếu không là false.<br>Chương trình Python ví dụ</div><div>Ví dụ sau minh họa cách sử dụng của has_key() trong Python.<br><br></div><pre> 

dict = {'Ten': 'Hoang', 'Tuoi': 20}

print "Gia tri : %s" %  dict.has_key('Tuoi')
print "Gia tri : %s" %  dict.has_key('Gioitinh')</pre><div>Chạy chương trình Python trên sẽ cho kết quả −<br><br></div><pre>Gia tri : True
Gia tri : False</pre>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:48:20 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526876272</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC items()</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526877299</link>
         <description><![CDATA[<div>Miêu tả</div><div>Phương thức <strong>items()</strong> trả về tất cả các cặp (key-value) của một Dictionary<br><br></div><div>Cú pháp</div><div>Cú pháp của <strong>items()</strong> trong Python:<br><br></div><pre>dict.items()</pre><div>Chi tiết về tham số:<br><br></div><ul><li><strong>NA</strong></li></ul><div>Trả về giá trị</div><div>Trả về tất cả các cặp (key-value) của một Dictionary.<br>Chương trình Python ví dụ</div><div>Ví dụ sau minh họa cách sử dụng của items() trong Python.<br><br></div><pre> 

dict = {'Ten': 'Hoang', 'Tuoi': 20}

print "Gia tri : %s" %  dict.items()</pre><div>Chạy chương trình Python trên sẽ cho kết quả −<br><br></div><pre>Gia tri : [('Tuoi', 20), ('Ten', 'Hoang')]</pre>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:49:10 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526877299</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC keys()</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526878164</link>
         <description><![CDATA[<div>Miêu tả</div><div>Phương thức <strong>keys()</strong> trả về tất cả các key của một Dictionary.<br><br></div><div>Cú pháp</div><div>Cú pháp của <strong>keys()</strong> trong Python:<br><br></div><pre>dict.keys()</pre><div>Chi tiết về tham số:<br><br></div><ul><li><strong>NA</strong></li></ul><div>Trả về giá trị<br>Trả về một danh sách chứa tất cả các key của một Dictionary.<br><br></div><div>Chương trình Python ví dụ</div><div>Ví dụ sau minh họa cách sử dụng của keys() trong Python.<br><br></div><pre> 

dict = {'Ten': 'Hoang', 'Tuoi': 20}

print "Gia tri : %s" %  dict.keys()</pre><div>Chạy chương trình Python trên sẽ cho kết quả −<br><br></div><pre>Gia tri : ['Tuoi', 'Ten']</pre>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:49:48 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526878164</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC setdefault() </title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526880201</link>
         <description><![CDATA[<div>Miêu tả</div><div>Phương thức <strong>setdefault()</strong> tương tự get(), nhưng sẽ thiết lập <em>dict[key]=default</em> nếu <em>key</em> là không tồn tại trong dict.<br><br></div><div>Cú pháp</div><div>Cú pháp của <strong>setdefault()</strong> trong Python:<br><br></div><pre>dict.setdefault(key, default=None)</pre><div>Chi tiết về tham số:<br><br></div><ul><li><strong>key</strong> -- Là key để được tìm.</li><li><strong>default</strong> -- Là giá trị để được trả về trong trường hợp key không tồn tại.</li></ul><div>Trả về giá trị</div><div>Trả về key có trong Dictionary, và nếu key không có thì phương thức trả về giá trị mặc định.<br><br></div><div>Chương trình Python ví dụ</div><div>Ví dụ sau minh họa cách sử dụng của setdefault() trong Python.<br><br></div><pre> 

dict = {'Ten': 'Hoang', 'Tuoi': 20}

print "Gia tri : %s" %  dict.setdefault('Tuoi', None)
print "Gia tri : %s" %  dict.setdefault('Gioitinh', None)</pre><div>Chạy chương trình Python trên sẽ cho kết quả −<br><br></div><pre>Gia tri :20
Gia tri : None</pre>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:51:27 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526880201</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC update()</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526881288</link>
         <description><![CDATA[<div>Miêu tả</div><div>Phương thức <strong>update()</strong> được sử dụng để thêm các item của dictionary 2 vào Dictionary đầu tiên.<br><br></div><div>Cú pháp</div><div>Cú pháp của <strong>update()</strong> trong Python:<br><br></div><pre>dict.update(dict2)</pre><div>Chi tiết về tham số:<br><br></div><ul><li><strong>dict2</strong> -- Đây là Dictionary để được thêm vào trong dict.</li></ul><div>Trả về giá trị</div><div>Phương thức này không trả về bất cứ giá trị nào.<br><br></div><div>Chương trình Python ví dụ</div><div>Ví dụ sau minh họa cách sử dụng của update() trong Python.<br><br></div><pre> 

dict = {'Ten': 'Hoang', 'Tuoi': 20}
dict2 = {'Gioitinh': 'nam' }

dict.update(dict2)
print "Gia tri : %s" %  dict</pre><div>Chạy chương trình Python trên sẽ cho kết quả −<br><br></div><pre>Gia tri : {'Tuoi': 20, 'Ten': 'Hoang', 'Gioitinh': 'nam'}</pre>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:52:19 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526881288</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC values()</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526882809</link>
         <description><![CDATA[<div>Miêu tả</div><div>Phương thức <strong>values()</strong> trả về tất cả các value của một Dictionary.<br><br></div><div>Cú pháp</div><div>Cú pháp của <strong>values()</strong> trong Python:<br><br></div><pre>dict.values()</pre><div>Chi tiết về tham số:<br><br></div><ul><li><strong>NA</strong></li></ul><div>Trả về giá trị</div><div>Trả về tất cả các value của một Dictionary.<br><br></div><div>Chương trình Python ví dụ</div><div>Ví dụ sau minh họa cách sử dụng của values() trong Python.<br><br></div><pre> 

dict = {'Ten': 'Hoang', 'Tuoi': 7}

print "Gia tri : %s" %  dict.values()</pre><div>Chạy chương trình Python trên sẽ cho kết quả −<br><br></div><pre>Gia tri : [7, 'Hoang']Gia tri : [7, 'Hoang']</pre>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 09:53:32 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2526882809</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC add(.).g</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527286707</link>
         <description><![CDATA[<div>Thêm một phần tử vào tập hợp<br>VD:</div><pre>fruits = {"apple", "banana", "cherry"}<br><br>fruits.add("orange")<br><br>print(fruits)</pre><div><br><br></div><div><br>&nbsp;</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:41:26 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527286707</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC clear(.).</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527287639</link>
         <description><![CDATA[<div>Xóa tất cả các phần tử khỏi tập hợp</div><pre>fruits = {"apple", "banana", "cherry"}<br><br>fruits.clear()<br><br>print(fruits)</pre><div><br><br></div><div><br>&nbsp;</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:41:59 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527287639</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC copy(.).</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527289243</link>
         <description><![CDATA[<div>Trả về một bản sao của tập hợp</div><pre>fruits = {"apple", "banana", "cherry"}<br><br>x = fruits.copy()<br><br>print(x)</pre><div><br><br></div><div><br>&nbsp;</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:42:53 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527289243</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC difference(.).</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527290150</link>
         <description><![CDATA[<div>Trả về một tập hợp chứa sự khác biệt giữa hai hoặc nhiều tập hợp</div><pre>x = {"apple", "banana", "cherry"}<br>y = {"google", "microsoft", "apple"}<br><br>z = x.difference(y)<br><br>print(z)</pre><div><br><br></div><div><br>&nbsp;</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:43:26 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527290150</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC difference_update()</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527290656</link>
         <description><![CDATA[<div>Loại bỏ các mục trong bộ này cũng được bao gồm trong một bộ khác, được chỉ định</div><pre>x = {"apple", "banana", "cherry"}
y = {"google", "microsoft", "apple"}

x.difference_update(y)

print(x)</pre><div><br><br></div><div><br>&nbsp;</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:43:44 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527290656</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC discard(.).</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527291564</link>
         <description><![CDATA[<div>Xóa mục đã chỉ định</div><pre>fruits = {"apple", "banana", "cherry"}<br><br>fruits.discard("banana")<br><br>print(fruits)</pre><div><br><br></div><div><br>&nbsp;</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:44:17 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527291564</guid>
      </item>
      <item>
         <title>PHÉP GIAO intersection(.).</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527292246</link>
         <description><![CDATA[<div>Trả về một tập hợp, đó là giao điểm của hai hoặc nhiều tập hợp</div><div><br></div><pre>x = {"apple", "banana", "cherry"}
y = {"google", "microsoft", "apple"}

z = x.intersection(y)

print(z)</pre><div><br></div><div><br>&nbsp;</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:44:35 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527292246</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC intersection_update()</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527292457</link>
         <description><![CDATA[<div>Xóa các mục trong bộ này không có trong (các) bộ khác, được chỉ định</div><pre>x = {"apple", "banana", "cherry"}<br>y = {"google", "microsoft", "apple"}<br><br>x.intersection_update(y)<br><br>print(x)</pre><div><br><br></div><div><br>&nbsp;</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:44:43 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527292457</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC isdisjoint()</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527292674</link>
         <description><![CDATA[<div>Trả về hai tập hợp có giao nhau hay không</div><pre>x = {"apple", "banana", "cherry"}<br>y = {"google", "microsoft", "facebook"}<br><br>z = x.isdisjoint(y)<br><br>print(z)</pre><div><br><br></div><div><br>&nbsp;</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:44:51 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527292674</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC issuperset(.).</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527293351</link>
         <description><![CDATA[<div>Trả về bộ này có chứa bộ khác hay không</div><pre>x = {"f", "e", "d", "c", "b", "a"}<br>y = {"a", "b", "c"}<br><br>z = x.issuperset(y)<br><br>print(z)</pre><div><br><br></div><div><br>&nbsp;</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:45:16 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527293351</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC issubset(.).</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527293631</link>
         <description><![CDATA[<div>Trả về việc một tập hợp khác có chứa tập hợp này hay không</div><pre>x = {"a", "b", "c"}<br>y = {"f", "e", "d", "c", "b", "a"}<br><br>z = x.issubset(y)<br><br>print(z)</pre><div><br><br></div><div><br>&nbsp;</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:45:27 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527293631</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC pop(.).</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527293898</link>
         <description><![CDATA[<div>Xóa một phần tử khỏi tập hợp</div><pre>fruits = {"apple", "banana", "cherry"}<br><br>fruits.pop()<br><br>print(fruits)</pre><div><br><br></div><div><br>&nbsp;</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:45:38 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527293898</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC remove(.).</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527294145</link>
         <description><![CDATA[<div>Xóa phần tử đã chỉ định</div><pre>fruits = {"apple", "banana", "cherry"}<br><br>fruits.remove("banana")<br><br>print(fruits)</pre><div><br><br></div><div><br>&nbsp;</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:45:48 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527294145</guid>
      </item>
      <item>
         <title>HIỆU ĐỐI XỨNG CỦA HAI TẬP HỢP symmetric_difference(.).</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527294454</link>
         <description><![CDATA[<div>Trả về một tập hợp có sự khác biệt đối xứng của hai tập hợp</div><div><br></div><pre>x = {"apple", "banana", "cherry"}
y = {"google", "microsoft", "apple"}

z = x.symmetric_difference(y)

print(z)</pre><div><br></div><div><br>&nbsp;</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:46:00 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527294454</guid>
      </item>
      <item>
         <title>HIỆU ĐỐI XỨNG CỦA HAI TẬP HỢP symmetric_difference_update(.).</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527294761</link>
         <description><![CDATA[<div>Chèn sự khác biệt đối xứng từ bộ này và bộ khác</div><pre>x = {"apple", "banana", "cherry"}<br>y = {"google", "microsoft", "apple"}<br><br>x.symmetric_difference_update(y)<br><br>print(x)</pre><div><br><br></div><div><br>&nbsp;</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:46:11 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527294761</guid>
      </item>
      <item>
         <title>Phép hợp union(.).</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527295108</link>
         <description><![CDATA[<div>Trả về một tập hợp chứa hợp của các tập hợp</div><pre>x = {"apple", "banana", "cherry"}<br>y = {"google", "microsoft", "apple"}<br><br>z = x.union(y)<br><br>print(z)</pre><div><br><br></div><div><br>&nbsp;</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:46:25 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527295108</guid>
      </item>
      <item>
         <title>PHƯƠNG THỨC update(.).</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527295750</link>
         <description><![CDATA[<div>Cập nhật bộ này bằng một bộ khác hoặc bất kỳ bộ lặp nào khác</div><pre><br>x = {"apple", "banana", "cherry"}<br>y = {"google", "microsoft", "apple"}<br><br>x.update(y)<br><br>print(x)<br></pre><div><br></div><div><br><br></div><div><br>&nbsp;</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:46:50 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527295750</guid>
      </item>
      <item>
         <title>CÁCH KHAI BÁO</title>
         <author>phuonguyensue</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527297701</link>
         <description><![CDATA[<div>2. SET<br>cách làm giống List, thay ngoặc vuông bằng <strong>ngoặc nhọn</strong></div><pre>friends = {"Rolf","Bob","Anne"}</pre><div>*<br>- Set không cho phép 2 phần tử giống nhau trong nó. Nếu khai báo 2 phần tử giống nhau trong Set thì nó cũng sẽ chỉ nhận 1 phần tử.<br>- các phần tử của Set không thể là <strong>list</strong>, <strong>set</strong> và <strong>dictionary</strong>.</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:48:06 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527297701</guid>
      </item>
      <item>
         <title>CÁCH KHAI BÁO</title>
         <author>phuonguyensue</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527298800</link>
         <description><![CDATA[<div>3. DICTIONARY<br>cách làm giống Set. Bên trong các phần tử theo cặp (khóa và giá trị) được phân tách bởi dấu phẩy, phân tách giữa khóa và giá trị của từng phần tử bởi dấu hai chấm.&nbsp;</div><pre>dictionary_name = {key_1: value_1, key_2: value_2, ..., key_n: value_n}</pre><div><br></div><pre>friend_ages = {"Rolf": 24, "Adam": 30, "Anne": 27}</pre><div><br><br></div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:48:48 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527298800</guid>
      </item>
      <item>
         <title>CÁCH TRUY CẬP CÁC PHẦN TỬ</title>
         <author></author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527308740</link>
         <description><![CDATA[<div>1. Sử dụng vòng lặp for<br>VD: duyệt các phần tử của một Set và in các giá trị ra màn hình:<br>setFruits <strong>=</strong> {"apple", "cherry", "banana"}</div><div><strong>for</strong> x <strong>in</strong> setFruits:</div><div>&nbsp; &nbsp; print(x)<br>Kết quả:<br>apple<br>cherry<br>banana<br><br>2. sử dụng từ khóa <strong>in </strong>để kiểm tra xem phần tử có tồn tại trong Set hay không<br>setFruits <strong>=</strong> {"apple", "cherry", "banana"}</div><div>x <strong>=</strong> "apple" <strong>in</strong> setFruits</div><div>print(x)<br>Kết quả<br>True</div><div><br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 14:54:47 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527308740</guid>
      </item>
      <item>
         <title>CÁCH TRUY CẬP CÁC PHẦN TỬ</title>
         <author>phuonguyensue</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527370201</link>
         <description><![CDATA[<div>1. <strong>Sử dụng toán tử index [] để truy cập vào một phần tử của tuple</strong>. <br>Index bắt đầu từ 0, nên một tuple có 6 phần tử sẽ có index từ 0 đến 5. Index phải là một số nguyên, không thể sử dụng float, hay kiểu dữ liệu khác.<br>VD:<br>my_tuple <strong>=</strong> ('p','e','r','m','i','t')</div><div>print(my_tuple[0]) &nbsp; # 'p'&nbsp;</div><div>print(my_tuple[5]) &nbsp; # 't'<br>kết quả:<br>p<br>t<br><br>2.&nbsp;<strong>Index (chỉ mục)</strong> <strong>âm</strong></div><div>Python cho phép lập chỉ mục âm cho các chuỗi. Index -1 là phần tử cuối cùng, -2 là phần tử thứ 2 từ cuối cùng lên,…. Nói đơn giản là index âm dùng khi đếm phần tử của chuỗi ngược từ cuối lên đầu.<br>VD:<br>elementsmy_tuple <strong>=</strong> ('p', 'e', 'r', 'm', 'i', 't') <br>print(my_tuple[<strong>-</strong>1])<br>print(my_tuple[<strong>-</strong>6])</div><div>Kết quả:</div><div>t</div><div>p<br><br>3.<strong>Slicing</strong> (<strong>Cắt lát)<br></strong>truy cập một loạt các phần tử trong một tuple trong Python bằng cách sử dụng dấu hai chấm : của toán tử cắt (Slicing).<br>VD:<br>my_tuple <strong>=</strong> ('p','r','o','g','r','a','m','i','z') elements&nbsp;</div><div>print(my_tuple[1:4])<br>Kết quả:<br>('r', 'o', 'g')</div><div><br><br><br></div><div><br><br></div><div><br><br></div><div><br><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 15:32:25 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527370201</guid>
      </item>
      <item>
         <title>CÁCH TRUY CẬP CÁC PHẦN TỬ</title>
         <author>phuonguyensue</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527374052</link>
         <description><![CDATA[<div><strong>Cú pháp dictionary_name[key]</strong><br>person = {<br>&nbsp; &nbsp; 'name': 'Vũ Thanh Tài',<br>&nbsp; &nbsp; 'age': 22,<br>&nbsp; &nbsp; 'male': True,<br>&nbsp; &nbsp; 'status': 'single'&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<br>&nbsp; &nbsp; }<br>person['name']&nbsp;<br>person['status']&nbsp;<br> kết quả:<br>Vũ Thanh Tài<br>single<br><br>2.</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 15:34:53 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527374052</guid>
      </item>
      <item>
         <title>NGỌC LÊ</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527400540</link>
         <description><![CDATA[<div><strong>THIÊN BÌNH THÁNG 10</strong></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1997674631/7cea5c2480428f251eda16c3f9f38b98/z4203778956668_240278150cef71f283f0a330128d142e.jpg" />
         <pubDate>2023-03-22 15:51:04 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527400540</guid>
      </item>
      <item>
         <title>UYÊN NGÔ</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527400934</link>
         <description><![CDATA[<div><strong>THIÊN BÌNH THÁNG 10<br></strong><br></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1997674631/4f5d82159240ba879a98c3ff6aec5c01/z4203778958610_4b967a8a746ed81357ac5c1775f71126.jpg" />
         <pubDate>2023-03-22 15:51:20 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527400934</guid>
      </item>
      <item>
         <title>MY HOÀNG</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527401207</link>
         <description><![CDATA[<div><strong>THIÊN YẾT THÁNG 11</strong></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1997674631/749257ac9a0ca7847281add7df55b700/z4203778950677_8ccdb223f98e65662f3ffe1cddddcbb7.jpg" />
         <pubDate>2023-03-22 15:51:31 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527401207</guid>
      </item>
      <item>
         <title>HUYÊN PHẠM</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527401568</link>
         <description><![CDATA[<div><strong>THIÊN BÌNH THÁNG 10</strong></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1997674631/901463a1cc75dda7f84aad8277d9c827/z4203772350219_317e37cde6205163d19f82ffa26b709e.jpg" />
         <pubDate>2023-03-22 15:51:46 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527401568</guid>
      </item>
      <item>
         <title>MV DEBUT</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527406334</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1997674631/f2aaed1d15e65df3840018cffde31f23/4203765231561.mp4" />
         <pubDate>2023-03-22 15:54:24 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527406334</guid>
      </item>
      <item>
         <title>HỌP BÁO RA MẮT CÙNG CHỦ TỊCH WILLIAM THÀNH DANH</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527408847</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1997674631/2406a83b3d8e97d7125e39cb2a7c4f2d/z4203763478514_207970f2806e7b57420848fa990b4073.jpg" />
         <pubDate>2023-03-22 15:56:00 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527408847</guid>
      </item>
      <item>
         <title>SỰ KHÁC NHAU</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527922257</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1997674631/7f97e80c5b49bc22e210edda49110de7/EB5DDD62_5F08_4186_91BC_91DCB7AE2C93.jpeg" />
         <pubDate>2023-03-22 23:47:39 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527922257</guid>
      </item>
      <item>
         <title>CHÚ Ý</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527923521</link>
         <description><![CDATA[<ul><li>Tuple có tốc độ xử lý nhanh hơn List, do Tuple được lưu trữ một khối bộ nhớ xác định còn List thì thường xuyên phải thay đổi không gian lưu trữ. Nếu bạn định nghĩa một tập các giá trị là hằng số và sau đó duyệt qua tập hợp này thì nên chọn Tuple.</li><li>Sử dụng Tuple giúp code an toàn hơn, khi đó chế độ “write-protect” giúp cho dữ liệu không thể thay đổi. Do vậy nên lựa chọn cho những dữ liệu dạng hằng số, dữ liệu không thay đổi theo thời gian.</li><li>Tuple còn được sử dụng làm khóa trong Dictionary do nó chứa các giá trị không đổi, List không được sử dụng làm khóa cho Dictionary.</li></ul><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 23:49:20 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527923521</guid>
      </item>
      <item>
         <title>CHÚ Ý</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527923930</link>
         <description><![CDATA[<ul><li>Khóa của Dictionary có thể là chuỗi hoặc số, khóa này là duy nhất ở từng cấp.</li><li>Giá trị của Dictionary có thể chuỗi, số hoặc các cấu trúc List, Tuple, Set hoặc thậm chí là Dictionary.</li></ul><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 23:49:56 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527923930</guid>
      </item>
      <item>
         <title>CHÚ Ý</title>
         <author>ngoc80781</author>
         <link>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527924142</link>
         <description><![CDATA[<ul><li>Các phần tử là không được thay đổi, do vậy khả năng tìm dữ liệu sẽ nhanh hơn.</li><li>Set cần thiết cho các logic liên đến các cặp (key:value) trong cấu trúc Dictionary của Python.</li><li>Các phần tử là duy nhất, do đó nếu bạn có một dữ liệu tương tự thì Set là một lựa chọn.</li></ul><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-22 23:50:15 UTC</pubDate>
         <guid>https://padlet.com/ngoc80781/11ab2_nhungconangxinhdep/wish/2527924142</guid>
      </item>
   </channel>
</rss>
