<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>11AB1-NHÓM CỦA KHOA X.HUY B.QUÂN by Quân Trần Bảo</title>
      <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv</link>
      <description></description>
      <language>en-us</language>
      <pubDate>2023-03-20 03:58:33 UTC</pubDate>
      <lastBuildDate>2025-10-05 05:58:05 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>CÁCH TRUY CẬP CÁC PHẦN TỬ</title>
         <author>bquan2509</author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2522902935</link>
         <description><![CDATA[<div>Giống như list, ta có thể truy cập phần tử trong tuple dựa vào chỉ mục (vị trí phần tử)<br>Ta có thể truy cập nhiều mục bằng cách tham khảo số chỉ mục, bên trong dấu ngoặc vuông.<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-20 04:23:04 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2522902935</guid>
      </item>
      <item>
         <title>THÀNH VIÊN</title>
         <author>bquan2509</author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2522904010</link>
         <description><![CDATA[<div>14-XUÂN HUY(DICTIONARY)<br>22-BẢO QUÂN(TUPLE)<br>17-ĐĂNG KHOA(SET)</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-20 04:24:23 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2522904010</guid>
      </item>
      <item>
         <title>PHÂN CÔNG</title>
         <author>bquan2509</author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2522905193</link>
         <description><![CDATA[<div>TÌM HIỂU VỀ:<br>HUY- DICTIONARY<br>KHOA- SET<br>QUÂN- TUPLE</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-20 04:25:46 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2522905193</guid>
      </item>
      <item>
         <title>CÁCH KHAI BÁO</title>
         <author>bquan2509</author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2522907970</link>
         <description><![CDATA[<div>Định nghĩa một Tuple cũng giống như định nghĩa một List trong Python, chỉ khác một điều là thay vì sử dụng ngoặc vuông chúng ta sử dụng ngoặc thường ở đây.<br><br></div><pre>friends = ("Rolf","Bob","Anne")</pre><div>Chú ý, Python cho phép định nghĩa Tuple mà không cần sử dụng dấu ngoặc thường. Ví dụ:<br><br></div><pre>friends = "Rolf","Bob","Anne"</pre><div>Đây là một định nghĩa Tuple, thậm chí Tuple chỉ có một phần tử:<br><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 04:28:46 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2522907970</guid>
      </item>
      <item>
         <title>PHÂN TÍCH SỰ KHÁC NHAU</title>
         <author></author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2522910230</link>
         <description><![CDATA[<div>-Kiểu set rất đặc biệt, nó là kiểu dữ liệu bất biến (không thay đổi), các phần tử không được trùng, vì vậy không được sử dụng mảng và dictionary để lưu trong set.<br>-Ta thường dùng set để lưu những danh sách có tính duy nhất.</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-20 04:31:06 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2522910230</guid>
      </item>
      <item>
         <title>CÁCH KHAI BÁO</title>
         <author></author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2522911713</link>
         <description><![CDATA[<div>-Kiểu dữ liệu set trong python là một collection không có thứ tự, không có chỉ mục. Không cho phép chứa dữ liệu trùng lặp.<br>-Set trong Python được khai báo với các dấu ngoặc nhọn {}.</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-20 04:32:39 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2522911713</guid>
      </item>
      <item>
         <title>PHÂN TÍCH SỰ KHÁC NHAU</title>
         <author>bquan2509</author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2522911751</link>
         <description><![CDATA[<div><br>Tuple có cách hoạt động rất giống với mảng, sự khác biệt duy nhất là bạn không thể thay đổi dữ liệu cho các phần tử Tuple, trừ khi phần tử đó là một dictionary hoặc array.</div><div><br></div><div><br></div><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-20 04:32:40 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2522911751</guid>
      </item>
      <item>
         <title>CÁCH TRUY CẬP CÁC PHẦN TỬ</title>
         <author></author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2522912169</link>
         <description><![CDATA[<div>-Đối với kiểu Set, bạn không thể truy cập các phần tử thông qua chỉ số. Nhưng bạn có thể lặp (hay duyệt) tất cả các phần tử có trong Set bằng cách sử dụng vòng lặp for, kết hợp với từ khóa "in" có sẵn trong Python.</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-20 04:33:07 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2522912169</guid>
      </item>
      <item>
         <title>ĐĂNG KHOA</title>
         <author>bquan2509</author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2522914943</link>
         <description><![CDATA[<div>Biệt tài: Gõ chữ = 2 ngón</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1331034953/33154293210457e3c8c9524a3d3e3b43/image.png" />
         <pubDate>2023-03-20 04:36:09 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2522914943</guid>
      </item>
      <item>
         <title>XUÂN HUY</title>
         <author></author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2523433487</link>
         <description><![CDATA[<div>Ông hoàng ảo thuật gia, vua lừa bịp của thời đại :&gt;</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1997894802/2047fc04ec8fcbe2c39372437310c265/image.png" />
         <pubDate>2023-03-20 12:09:10 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2523433487</guid>
      </item>
      <item>
         <title></title>
         <author></author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2523436327</link>
         <description><![CDATA[<div>Đầu xoăn nhung không tự nhiên</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1997894802/f019106fc0bdc47f0b5b194b438c31b1/image.png" />
         <pubDate>2023-03-20 12:11:12 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2523436327</guid>
      </item>
      <item>
         <title>HÀM CỦA SET</title>
         <author></author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2523453619</link>
         <description><![CDATA[<div><br>Có hai cách để tạo một tập hợp set trong Python, đó là:<br><br></div><ul><li>Sử dụng dấu ngoặc nhọn {}. Một tập hợp Set có thể dễ dàng được tạo bằng cách đặt tất cả các phần tử bên trong dấu ngoặc nhọn {}, được phân tách bằng dấu phẩy. Lưu ý rằng, các phần tử trong tập này phải khác nhau.</li><li>Sử dụng hàm tạo set() đã được tích hợp sẵn. Điều này được thực hiện tương tự như ép kiểu, chúng ta có thể đưa các kiểu dữ liệu tập hợp khác về kiểu set bằng cách truyền nó vào tham số của hàm set() trong cặp dấu ngoặc tròn ().</li><li>Ví dụ:</li><li><pre>sample_set1 = {'Python', 'TEK4.VN', 11, 20.1, 11}
print(sample_set1)
sample_set2 = {200.5, "Python", (200, 300, 400)}
print(sample_set2)
name_set = set(("Hùng", "Huy", "Hải"))
print(name_set)
print(type(name_set))
p_set=set([1,2,3,1,2,3])
print(p_set)</pre></li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-20 12:22:42 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2523453619</guid>
      </item>
      <item>
         <title>NHỮNG ĐIỂM CẦN LƯU Ý KHI DÙNG</title>
         <author></author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2523459061</link>
         <description><![CDATA[<div>Toán tập hợp hay lý thuyết tập hợp là một trong những phần quan trọng của Toán học mà Khoa học dữ liệu (data science) và Machine Learning sử dụng kiến thức Toán rất nhiều, do vậy toán tập hợp trong Python là một phần không thể thiếu. Ngay từ đầu Python đã được phát triển cho mục đích Khoa học và Giáo dục, do vậy bạn có thể thấy các thiết kế mang hơi hướng Khoa học.<br><br></div><div>Tập hợp cũng là một nhóm các dữ liệu giống như với List và Tuple nhưng nó lại được xây dựng sẵn các phép toán tập hợp, do vậy tập hợp sẽ được sử dụng khi chương trình của bạn cần các phép toán tập hợp như .union(), .difference(), .intersection()… Để lựa chọn cấu trúc dữ liệu phù hợp, bạn cần nắm rõ những đặc điểm của từng loại, ở đây Set có những đặc điểm mà tôi đã đưa ra ở phần đầu, dưới đây chỉ nhắc lại:<br><br></div><ul><li>Set có 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>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-20 12:26:31 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2523459061</guid>
      </item>
      <item>
         <title>(KHOA)ĐỀ BÀI: Trả về dict kết quả đã sắp xếp theo giá trị key tăng dần. (Tham số là 1 dict)</title>
         <author></author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2523502235</link>
         <description><![CDATA[<div>CODE MẪU:<br>def nhap_dict():<br>&nbsp; &nbsp; try:<br>&nbsp; &nbsp; &nbsp; &nbsp; listKey = list(map(int, input().split()))<br>&nbsp; &nbsp; except:<br>&nbsp; &nbsp; &nbsp; &nbsp; print("Vui long nhap key la so nguyen!")<br>&nbsp; &nbsp; &nbsp; &nbsp; return None<br><br>&nbsp; &nbsp; listValue = input().split()<br><br>&nbsp; &nbsp; if len(listKey) != len(listValue):<br>&nbsp; &nbsp; &nbsp; &nbsp; print("Vui long nhap so luong key va value bang nhau!")<br>&nbsp; &nbsp; &nbsp; &nbsp; return None<br><br>&nbsp; &nbsp; dictKetQua = dict(zip(listKey, listValue))<br>&nbsp; &nbsp; return dictKetQua<br><br>def sort_dict_by_key(dictA):<br>&nbsp; &nbsp; #Su dung phuong thuc keys() de lay ra danh sach cac key cua dict<br>&nbsp; &nbsp; #Su dung phuong thuc sort() de sap xep cac key theo thu tu tang dan<br>&nbsp; &nbsp; listKey = sorted(dictA.keys())<br>&nbsp; &nbsp; dictKetQua = {}<br>&nbsp; &nbsp; for key in listKey:<br>&nbsp; &nbsp; &nbsp; &nbsp; dictKetQua[key] = dictA[key]<br>&nbsp; &nbsp; return dictKetQua<br><br>dictA = nhap_dict()<br><br>if dictA is not None:<br>&nbsp; &nbsp; print(dictA)<br>&nbsp; &nbsp; dictKetQua = sort_dict_by_key(dictA)<br>&nbsp; &nbsp; print(dictKetQua)<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-20 12:54:35 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2523502235</guid>
      </item>
      <item>
         <title>Hàm của Tuple</title>
         <author></author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2523659974</link>
         <description><![CDATA[<div>Độ dài tuple</div><div><br>Để xác định số lượng mục có trong một tuple, dùng hàm len(). Ví dụ:<br><br></div><pre>thistuple = ("apple", "banana", "cherry")
print(len(thistuple))</pre><div>Cú pháp cơ bản của hàm tuple() trong Python</div><pre>tuple(iterable)</pre><div>Tham số của hàm tuple()</div><div><br>Hàm tuple() trong Python có tham số :<br><br></div><ul><li><em>iterable</em>: các <em>iterable</em> được tích hợp sẵn (như list, string, dict) hoặc iterator object.</li></ul><div>Giá trị trả về từ tuple()</div><ul><li>Nếu không có tham số nào được truyền, <em>tuple()</em> trả về một tuple rỗng.</li><li>Nếu tham số <em>iterable</em> được truyền, <em>tuple()</em> trả về tuple tương ứng.</li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-20 14:20:30 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2523659974</guid>
      </item>
      <item>
         <title>Những điểm cần lưu ý khi dùng</title>
         <author></author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2523669832</link>
         <description><![CDATA[<div>Trường hợp chưa muốn định nghĩa giá trị, có thể định nghĩa một Tuple empty như sau:<br><br></div><pre># Nếu chưa có sẵn các giá trị nhưng vẫn muốn sử dụng tuple, ta có thể thoải mái định nghĩa tuple empty
tuple_empty = ()</pre><div>Nhớ thêm dấu phẩy vào để python nhận dạng tuple<br><br></div><pre># Nếu chưa có sẵn các giá trị nhưng vẫn muốn sử dụng tuple, ta có thể thoải mái định nghĩa tuple empty
tuple_empty = ("kien dep trai",)</pre>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-20 14:25:35 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2523669832</guid>
      </item>
      <item>
         <title>Quân(đề):Xoá phần tử khỏi từ điển</title>
         <author></author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2523674207</link>
         <description><![CDATA[<pre>friend_ages = {"Rolf": 24, "Adam": 30, "Anne": 27}
friend_ages.clear()
print(friend_ages) # Kết quả là {}</pre><div><br><strong>.clear()</strong> Xóa toàn bộ các phần tử khỏi từ điển.</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-20 14:27:56 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2523674207</guid>
      </item>
      <item>
         <title>Phân tích sự khác nhau</title>
         <author>HuyVu0901</author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2524475283</link>
         <description><![CDATA[]]></description>
         <enclosure url="" />
         <pubDate>2023-03-21 01:04:30 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2524475283</guid>
      </item>
      <item>
         <title>Cách khai báo</title>
         <author>HuyVu0901</author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2524482822</link>
         <description><![CDATA[<div>Key và value được phân biệt riêng rẽ bởi một dấu hai chấm (:). Các item phân biệt nhau bởi một dấu phảy (,). Các item khác nhau được bao quanh bên trong một cặp dấu ngoặc móc đơn tạo nên một Dictionary trong Python<br>dictCar <strong>=</strong> {"key": "value","key": "value"}</div><div><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-21 01:10:00 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2524482822</guid>
      </item>
      <item>
         <title>Cách truy cập các phần tử</title>
         <author>HuyVu0901</author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2524486435</link>
         <description><![CDATA[<div>Bạn có thể truy cập các item của Dictionary bằng cách sử dụng khóa của nó, bên trong dấu ngoặc vuông, ví dụ:<br>dictCar <strong>=</strong> {</div><div>&nbsp; &nbsp; "brand": "Honda",</div><div>&nbsp; &nbsp; "model": "Honda Civic",</div><div>&nbsp; &nbsp; "year": 1972</div><div>}</div><div>print(dictCar["model"])</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-21 01:12:24 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2524486435</guid>
      </item>
      <item>
         <title>Hàm của dictionary</title>
         <author></author>
         <link>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2529128014</link>
         <description><![CDATA[<div>STTHàm và Miêu tả<br>1 | <a href="https://viettuts.vn/python-dictionary/ham-dictionary-len-trong-python">Hàm len(dict)</a><br>Độ dài của dict. Nó sẽ là số item trong Dictionary này<br>2 | <a href="https://viettuts.vn/python-dictionary/ham-dictionary-str-trong-python">Hàm str(dict)</a><br>Tạo ra một biểu diễn chuỗi có thể in được của một dict<br>3 | <a href="https://viettuts.vn/python-dictionary/ham-dictionary-type-trong-python">Hàm type(variable)</a><br>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</div><div>Các phương thức đã được xây dựng sẵn cho Dictionary trong Python:<br><br></div><div>STTHàm và Miêu tả<br>1 | <a href="https://viettuts.vn/python-dictionary/ham-dictionary-clear-trong-python">Hàm dict.clear()</a><br>Xóa tất cả phần tử của <em>dict</em><br>2 | <a href="https://viettuts.vn/python-dictionary/ham-dictionary-copy-trong-python">Hàm dict.copy()</a><br>Trả về bản sao của <em>dict</em><br>3 | <a href="https://viettuts.vn/python-dictionary/ham-dictionary-fromkeys-trong-python">Hàm fromkeys(seq,value1)/ fromkeys(seq)</a><br>Đượ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>4 | <a href="https://viettuts.vn/python-dictionary/ham-dictionary-get-trong-python">Hàm dict.get(key, default=None)</a><br>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>5 | <a href="https://viettuts.vn/python-dictionary/ham-dictionary-has-key-trong-python">Hàm dict.has-key(key)</a><br>Trả về true nếu key là có mặt trong Dictionary, nếu không là false<br>6 | <a href="https://viettuts.vn/python-dictionary/ham-dictionary-items-trong-python">Hàm dict.items()</a><br>Trả về tất cả các cặp (key-value) của một Dictionary<br>7 | <a href="https://viettuts.vn/python-dictionary/ham-dictionary-keys-trong-python">Hàm dict.keys()</a><br>Trả về tất cả các key của một Dictionary<br>8 | <a href="https://viettuts.vn/python-dictionary/ham-dictionary-setdefault-trong-python">Hàm dict.setdefault(key, default=None)</a><br>Tương tự get(), nhưng sẽ thiết lập dict[key]=default nếu <em>key</em> là không tồn tại trong dict<br>9 | <a href="https://viettuts.vn/python-dictionary/ham-dictionary-update-trong-python">Hàm dict.update(dict2)</a><br>Được sử dụng để thêm các item của dictionary 2 vào Dictionary đầu tiên<br>10 | <a href="https://viettuts.vn/python-dictionary/ham-dictionary-values-trong-python">Hàm dict.values()</a><br>Trả về tất cả các value của một Dictionary</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-23 16:17:12 UTC</pubDate>
         <guid>https://padlet.com/bquan2509/dj03o1hrts5skhdv/wish/2529128014</guid>
      </item>
   </channel>
</rss>
