<?xml version="1.0"?>
<rss version="2.0">
   <channel>
      <title>11AB1 - An-h by </title>
      <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg</link>
      <description>Kỳ Thùy An - Nguyễn Đức Anh</description>
      <language>en-us</language>
      <pubDate>2022-03-20 09:42:35 UTC</pubDate>
      <lastBuildDate>2026-03-04 08:34:22 UTC</lastBuildDate>
      <webMaster>hello@padlet.com</webMaster>
      <image>
         <url></url>
      </image>
      <item>
         <title>Tuple là gì vậy tarr??</title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2524713547</link>
         <description><![CDATA[<ul><li>Tuple trong Python là một kiểu dữ liệu dùng để lưu trữ các đối tượng <strong>có thứ tự </strong>và <strong>bất biến.&nbsp;</strong></li><li><strong>Tuple là bất biến (immutability).&nbsp;</strong>Cho phép chứa dữ liệu <strong>trùng lặp.</strong></li></ul>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1332969295/4bd5180b9ef84b24dc5b302e9c95c44f/image.png" />
         <pubDate>2023-03-21 04:27:18 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2524713547</guid>
      </item>
      <item>
         <title>Đọc kỹ HDSD trước khi dùng!!!</title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2524722168</link>
         <description><![CDATA[<ul><li>Tuple có thể chuyển đổi thành List, và ngược lại</li><li>Tuple <strong>không thể thay đổi</strong> sau khi đã được tạo ra</li><li>Ta không thể thực hiện các thao tác add, delete và search trên Tuple</li><li>Giá trị của các phần tử trong Tuple không thể thay đổi</li><li>Không thể xóa từng phần tử riêng lẻ của Tuple</li><li>Lệnh del sẽ xóa toàn bộ Tuple</li></ul><div><br></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1332969295/814cbac3979ae67bea8072ca17c18101/image.png" />
         <pubDate>2023-03-21 04:36:11 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2524722168</guid>
      </item>
      <item>
         <title>Cách khai báo</title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2528546591</link>
         <description><![CDATA[<ul><li>Tuple được tạo ra bằng cách đặt tất cả các <strong>items/elements</strong> bên trong <strong><em>dấu ngoặc đơn ''()'' </em></strong>và được <strong>phân tách bằng </strong><strong><em>dấu phẩy ","</em></strong><em>.</em></li><li>Một Tuple cũng có thể được tạo mà không cần sử dụng dấu ngoặc đơn, được gọi là <strong><em>tuple packing</em></strong>.</li><li><strong><mark>Lưu ý: </mark></strong>Để viết một tuple chứa <strong>một giá trị duy nhất,</strong> bạn bắt buộc phải thêm <strong>một dấu phẩy</strong> đằng sau giá trị đó</li></ul>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1184730000/66a5ca4a0e6132f064868b69364f9edc/image.png" />
         <pubDate>2023-03-23 09:33:01 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2528546591</guid>
      </item>
      <item>
         <title>Toán tử trong Tuple</title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2528555738</link>
         <description><![CDATA[<div>Tuple hỗ trợ các toán tử <strong>+ (Nối tuple)</strong> và <strong>* (Nhân bản tuple).</strong></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1332969295/3c53db712870c21e631cb8764d744bb6/image.png" />
         <pubDate>2023-03-23 09:41:29 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2528555738</guid>
      </item>
      <item>
         <title>Hàm trong Tuple</title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2528568500</link>
         <description><![CDATA[<div>Một số hàm dựng sẵn để thao tác với tuple trong Python:</div><ul><li><strong>cmp(tuple1, tuple2): </strong>So sánh các phần tử của 2 tuple</li><li><strong>len(tuple):</strong> Trả về chiều dài của tuple</li><li><strong>max(tuple): </strong>Trả về phần tử&nbsp; có giá trị lớn nhất trong tuple</li><li><strong>min(tuple):</strong> Trả về phần tử&nbsp; có giá trị nhỏ nhất trong tuple</li><li><strong>tuple(seq):</strong> Chuyển đổi một list thành tuple</li></ul>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1332969295/e7cce473dfdbe5abe1b4a61d36a49152/image.png" />
         <pubDate>2023-03-23 09:52:25 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2528568500</guid>
      </item>
      <item>
         <title>Cách truy cập các phần tử: Index (chỉ mục) của Tuple</title>
         <author>kythuyan</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529018871</link>
         <description><![CDATA[<ul><li>Sử dụng <strong>toán tử index [] </strong>để truy cập vào một phần tử của tuple.&nbsp;</li><li>Index <strong>bắt đầu từ 0</strong>, nên một tuple có 6 phần tử sẽ có index từ 0 đến 5.&nbsp;</li><li>Truy cập vào phần tử có index khác index của tuple sẽ làm phát sinh lỗi <strong><em>IndexError. </em></strong></li><li>Index phải là <strong>một số nguyên</strong>, không thể sử dụng float, hay kiểu dữ liệu khác, sẽ tạo lỗi <strong><em>TypeError.</em></strong></li></ul>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1184730000/503bb25bffa94164ebebee9928450513/image.png" />
         <pubDate>2023-03-23 15:07:45 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529018871</guid>
      </item>
      <item>
         <title>Phương thức</title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529048987</link>
         <description><![CDATA[<div>Phương thức <strong>Count</strong>:</div><div>Cú pháp:</div><blockquote>&lt;Tuple&gt;<strong>.count(value)</strong></blockquote><div><strong>Công dụng:</strong> Trả về một số nguyên, chính là số lần xuất hiện của value trong Tuple.</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1332969295/3c43b5fc96dc89779f3cbdb94d135997/image.png" />
         <pubDate>2023-03-23 15:27:00 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529048987</guid>
      </item>
      <item>
         <title>Cách truy cập các phần tử: Index (chỉ mục) âm</title>
         <author>kythuyan</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529067373</link>
         <description><![CDATA[<ul><li>Python cho phép lập chỉ mục âm cho <strong>các chuỗi.</strong></li><li>Index <strong><em>-1&nbsp; </em></strong>là phần tử <strong>cuối cùng</strong>, <strong><em>-2</em></strong> là phần tử thứ <strong>2 từ cuối cùng lên</strong>,….&nbsp;</li></ul><div><strong>-&gt;</strong> Nói đơn giản là index âm dùng khi bạn đếm phần tử của chuỗi <strong>ngược từ cuối lên đầu.</strong></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1184730000/dd9b6e5707526a7bd1e44538fe824409/image.png" />
         <pubDate>2023-03-23 15:37:59 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529067373</guid>
      </item>
      <item>
         <title>Cách truy cập các phần tử: Slicing (Cắt lát)</title>
         <author>kythuyan</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529081784</link>
         <description><![CDATA[<div>Chúng ta có thể truy cập <strong>một loạt</strong> các phần tử trong một tuple trong Python bằng cách sử dụng <strong>dấu hai chấm</strong> <strong><em>" : " </em></strong>của <strong>toán tử cắt (Slicing).</strong></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1184730000/3584917b9b13053b8c9d97f39bf927f5/image.png" />
         <pubDate>2023-03-23 15:46:58 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529081784</guid>
      </item>
      <item>
         <title>Dictionary là gì vậy trùi??</title>
         <author>kythuyan</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529120576</link>
         <description><![CDATA[<div>Kiểu dữ liệu Dictionary trong Python là một tập hợp các cặp <strong><em>key-value</em></strong> không có thứ tự, <strong>có thể thay đổi </strong>và <strong>lập chỉ mục (</strong>truy cập phần tử theo chỉ mục).&nbsp;</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-23 16:12:11 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529120576</guid>
      </item>
      <item>
         <title></title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529134489</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1332969295/14131ef278645ed3762af76a728c5824/image.png" />
         <pubDate>2023-03-23 16:21:48 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529134489</guid>
      </item>
      <item>
         <title>Cách khai báo</title>
         <author>kythuyan</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529134934</link>
         <description><![CDATA[<ul><li>Dictionary được khởi tạo với các <strong>dấu ngoặc nhọn {} </strong>và chúng có <strong>các khóa</strong> và <strong>giá trị (key-value)</strong>.&nbsp;</li><li>Mỗi cặp key-value được xem như là một item. Key mà đã truyền cho item đó phải là <strong>duy nhất</strong>, trong khi đó value có thể là bất kỳ kiểu giá trị nào.&nbsp;</li><li><strong><em>Key</em></strong> phải là một kiểu dữ liệu <strong>không thay đổi (immutable)</strong> như chuỗi, số hoặc tuple.</li><li><strong>Key và value</strong> được phân biệt riêng rẽ bởi một <strong>dấu hai chấm (:).&nbsp;</strong></li><li><strong>Các item </strong>phân biệt nhau bởi <strong>một dấu phảy (,).</strong>&nbsp;</li></ul>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1184730000/11d6d8f56e5146e15c247ba6ff684da4/image.png" />
         <pubDate>2023-03-23 16:22:01 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529134934</guid>
      </item>
      <item>
         <title></title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529138569</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1332969295/3cb34a6c749ad2e1477104536aa90920/image.png" />
         <pubDate>2023-03-23 16:24:24 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529138569</guid>
      </item>
      <item>
         <title></title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529144495</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1332969295/6a816c1a40be2c49280cd9f9b594db37/image.png" />
         <pubDate>2023-03-23 16:28:43 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529144495</guid>
      </item>
      <item>
         <title>Cách truy cập phần tử</title>
         <author>kythuyan</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529150176</link>
         <description><![CDATA[<ul><li>Có thể truy cập các item của Dictionary bằng cách sử dụng <strong>khóa </strong>của nó, bên trong <strong><em>dấu ngoặc vuông.</em></strong></li><li>Ngoài ra bạn cũng có thể sử dụng <strong><em>hàm get()</em></strong> để truy cập item của Dictionary trong Python.</li></ul>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1184730000/a8dd354b63217191a295ea22de30d0d4/image.png" />
         <pubDate>2023-03-23 16:33:05 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529150176</guid>
      </item>
      <item>
         <title></title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529151281</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1332969295/ea4504f39084b3680d42581c3f6e57b2/image.png" />
         <pubDate>2023-03-23 16:33:56 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529151281</guid>
      </item>
      <item>
         <title></title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529152513</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1332969295/4e97caa69530e06f44537ce683b8e3fc/image.png" />
         <pubDate>2023-03-23 16:34:47 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529152513</guid>
      </item>
      <item>
         <title></title>
         <author>kythuyan</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529174304</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1184730000/ddb6a2dba80bd5439a23e7068b32b098/a8289767f5b864bc41d1c3dc41e06d27.jpg" />
         <pubDate>2023-03-23 16:48:58 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529174304</guid>
      </item>
      <item>
         <title>Set là gì vậy nhỉ??</title>
         <author>kythuyan</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529220331</link>
         <description><![CDATA[<ul><li>Set trong python là một tập <strong>các giá trị không có thứ tự.&nbsp;</strong></li><li>Mỗi giá trị trong set là <strong>duy nhất, không thể lặp lại</strong> và <strong>bất biến</strong>( tức không thể thay đổi giá trị các phần tử trong set).</li><li>Tuy nhiên các set có thể thay đổi. Chúng ta có thể<strong> thêm, xóa các phần tử </strong>trong set.</li><li>Các set có thể được sử dụng để thực hiện các phép tập hợp như phép giao, hợp, …</li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-23 17:21:27 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529220331</guid>
      </item>
      <item>
         <title>Cách khai báo</title>
         <author>kythuyan</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529245775</link>
         <description><![CDATA[<ul><li>Mỗi set được tạo bằng cách đặt các phần tử của nó vào trong <strong>dấu {}</strong>, được phân tách bằng <strong>dấu phẩy</strong>, hoặc sử dụng hàm dựng sẵn <strong>set().</strong></li><li>Các phần tử của set có thể thuộc nhiều kiểu dữ liệu khác&nbsp; nhau như: <strong>numbers, string,… </strong>Nhưng các phần tử <strong>không được</strong> là các kiểu dữ liệu có thể <strong>thay đổi</strong> như list hay dictionary.</li><li><strong><mark>Lưu ý:</mark></strong> nếu khi tạo set mà có các phần tử trùng nhau thì sẽ <strong>tự động loại bỏ</strong> các phần tử lặp.</li></ul>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1184730000/975d0b03e55a836c57ff0c9748becc0d/image.png" />
         <pubDate>2023-03-23 17:38:31 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529245775</guid>
      </item>
      <item>
         <title>Hàm:</title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529274315</link>
         <description><![CDATA[<ul><li>Hàm <strong>cmp(dict1, dict2) So sánh</strong> các phần tử của cả hai dict</li><li>Hàm <strong>len(dict)</strong> Độ dài của dict. Nó sẽ là số item trong Dictionary này</li><li>Hàm <strong>str(dict)</strong> Tạo ra một biểu diễn chuỗi có thể in được của một dict</li><li>Hàm <strong>type(variable)</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</li></ul>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1332969295/63739d4debac9e95c4bb92bbcd25bd09/image.png" />
         <pubDate>2023-03-23 17:59:57 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529274315</guid>
      </item>
      <item>
         <title>Một số phương thức:</title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529301624</link>
         <description><![CDATA[<ul><li>Phương thức <strong>dict.clear()</strong> Xóa tất cả phần tử của <em>dict</em></li></ul><pre>- Input:<em>
car ={"brand": "Ford", "model": "Mustang", "year": 1964}
car.clear()
print(car)
- Output: 
</em>{}</pre><ul><li>Phương thức <strong>dict.copy()</strong> Trả về bản sao của <em>dict</em></li></ul><pre>- Input:
original = {1:'one',2:'two'}
new = original.copy()
print('Orignal:',original)
print('New:',new)
- Output:
Orignal: {1:'one',2:'two'}
New:  {1:'one',2:'two'}</pre><ul><li>Phương thức <strong>dict.keys()</strong> Trả về tất cả các key của một Dictionary</li></ul><pre>- Input:<br>car = {"brand": "Ford", "model": "Mustang", "year": 1964}<br>x = car.keys()<br>print(x)<br>- Output:<br>dict_keys(['brand', 'model', 'year'])</pre><ul><li>Phương thức <strong>dict.values()</strong>Trả về tất cả các value của một Dictionary:</li></ul><pre>- Input:&nbsp;<br>sales = { 'apple': 2, 'orange': 3, 'grapes': 4 }<br>print(sales.values())<br>- Output:<br>dict_values([2, 4, 3])</pre><div><br><br></div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1332969295/266f5eb4461e665a209e8b9496a3da41/image.png" />
         <pubDate>2023-03-23 18:19:25 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529301624</guid>
      </item>
      <item>
         <title>Cách truy cập phần tử</title>
         <author>kythuyan</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529350004</link>
         <description><![CDATA[<div>Không thể truy cập đến một phần tử thông qua vị trí của chúng, vì set không có thứ tự các phần tử. Thay vào đó, ta phải sử dụng vòng <strong><em>for</em></strong> .</div>]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1184730000/29957240945bcacde604474e2fd8ed41/image.png" />
         <pubDate>2023-03-23 18:58:12 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529350004</guid>
      </item>
      <item>
         <title>Tuple</title>
         <author>kythuyan</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529382533</link>
         <description><![CDATA[<ul><li>Tuple chứa một tập các giá trị, được phân tách nhau bằng dấu phẩy, có thể chứa <strong>bất kỳ kiểu dữ liệu nào. </strong></li><li>Một tuple được tạo bởi <strong>cặp dấu ().</strong></li><li><strong>Không thể thay đổi </strong>một phần tử của Tuple.</li><li><strong>Không thể xoá </strong>phần tử trong Tuple.</li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-23 19:27:59 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529382533</guid>
      </item>
      <item>
         <title>Set</title>
         <author>kythuyan</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529394241</link>
         <description><![CDATA[<ul><li>Set lại chứa các phần tử là <strong>DUY NHẤT</strong> có nghĩa là các phần tử <strong>không bị lặp lại</strong> trong một tập hợp Set.</li><li>Set chứa một tập các giá trị, được phân tách nhau bằng <strong>dấu phẩy</strong>, có thể sử dụng được các <strong>phép toán</strong> trên tập hợp, các phần tử trong Set <strong>không có thứ tự.</strong>&nbsp;</li><li>Một tập hợp Set được tạo bởi<strong> cặp dấu {}</strong> .</li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-23 19:40:04 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529394241</guid>
      </item>
      <item>
         <title>Dictionary</title>
         <author>kythuyan</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529403608</link>
         <description><![CDATA[<ul><li>Dictionary lưu trữ các phần tử theo dạng <strong>{key: value}.</strong></li><li>Các key phải có <strong>giá trị khác nhau.</strong></li><li>Python chỉ chấp nhận các key có các kiểu dữ liệu như <strong>(string, number, tuple).</strong></li><li>Một Dict được tạo bởi <strong>cặp dấu {} </strong>và mỗi phần tử là một cặp key:value.</li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-23 19:49:12 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529403608</guid>
      </item>
      <item>
         <title></title>
         <author>kythuyan</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529410575</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1184730000/fc80ea745442c249b5b0e3d3e65930e9/image.png" />
         <pubDate>2023-03-23 19:56:46 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529410575</guid>
      </item>
      <item>
         <title>Bài 1</title>
         <author>kythuyan</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529424006</link>
         <description><![CDATA[<div><br>Viết chương trình chấp nhận một chuỗi số, phân tách bằng dấu phẩy từ giao diện điều khiển, tạo ra một danh sách và một tuple chứa mọi số.<br><br></div><div>Ví dụ: Đầu vào được cung cấp là 34,67,55,33,12,98 thì đầu ra là:</div><div>['34', '67', '55', '33', '12', '98']<br>('34', '67', '55', '33', '12', '98')<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-23 20:11:01 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529424006</guid>
      </item>
      <item>
         <title>Bài 3</title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529425010</link>
         <description><![CDATA[<div><strong>Tạo một tuple với các kiểu dữ liệu khác nhau<br></strong>tuplex = ("tuple", False, 3.2, 1)<br>print(tuplex)<br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-23 20:12:16 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529425010</guid>
      </item>
      <item>
         <title>Bài 2</title>
         <author>kythuyan</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529427125</link>
         <description><![CDATA[<div>Viết hàm với tham số truyền vào là một tuple chứa các phần từ là tuple các số nguyên. Trả về tuple tổng của các tuple con, hiển thị tuple ban đầu và kết quả của hàm ra màn hình.</div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-23 20:14:56 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529427125</guid>
      </item>
      <item>
         <title>Chú ý:</title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529431935</link>
         <description><![CDATA[<ul><li>Khóa của Dictionary có thể là <strong>chuỗi</strong> hoặc <strong>số</strong>, khóa này là duy nhất ở từng cấp.</li><li>Giá trị của Dictionary có thể <strong>chuỗi, số</strong> hoặc các cấu trúc List, Tuple, Set hoặc thậm chí là Dictionary.</li></ul>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-23 20:20:40 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529431935</guid>
      </item>
      <item>
         <title>Một số phương thức:</title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529450160</link>
         <description><![CDATA[<ul><li>Phương thức <strong>.add():</strong></li></ul><div>Phương thức sử dụng để thêm một phần tử vào tập hợp.</div><pre>- Input:
friends = {"Rolf","Bob","Anne"}
friends.add("Jen")
print(friends)
-Output:
{"Bob","Jen","Anne","Rolf"}</pre><ul><li>Phương thức <strong>.remove():</strong></li></ul><div>Loại bỏ một phần tử trong tập hợp.</div><pre>- Input:
friends = {"Rolf","Bob","Anne"}
friends.remove("Anne")
- Output:
{"Rolf","Bob"}</pre><ul><li>Phương thức <strong>.discard():</strong></li></ul><div>Giống như phương thức .remove() loại bỏ phần tử trong tập hợp, tuy nhiên nếu phần tử đó không tồn tại thì nó không báo lỗi gì cả.</div><pre>- Input:
friends = {"Rolf","Bob","Anne"}
friends.discard("Anne")
print(friends)
- Output:
{"Rolf","Bob"}</pre><ul><li>Phương thức <strong>.update():</strong></li></ul><div>Phương thức .add() ở trên chỉ thêm được 1 phần tử vào tập hợp với 1 câu lệnh, để thêm nhiều phần tử, chúng ta sử dụng .update(). Chú ý, đầu vào của .update() có thể là một Set, một List hoặc một Tuple.</div><pre>- Input:
friends = {"Rolf","Bob","Anne"}
friends.update(["Jen","Charlie"],{"Jonhny", "Sara"},("Laura","Elite"))
print(friends)
- Output:
{'Anne', 'Laura', 'Elite', 'Rolf', 'Jonhny', 'Charlie', 'Bob', 'Sara', 'Jen'}</pre><ul><li>Phương thức <strong>.clear():</strong></li></ul><div>Loại bỏ tất cả các phần tử trong tập hợp, khi đó tập hợp được gọi là tập rỗng.</div><pre>- Input:
friends = {"Rolf","Bob","Anne"}
friends.clear()
print(friends)
- Output:set()</pre><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-23 20:43:05 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529450160</guid>
      </item>
      <item>
         <title>Hàm</title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529459130</link>
         <description><![CDATA[<div>Hàm <strong>intersection</strong></div><div>Hàm này được mô tả như <strong>phép giao hai set.</strong> Giao của hai set là <strong>tập hợp các phần tử</strong> có cả ở trong cả hai set. Phép giao được thưc hiện bằng toán tử &amp; ,hoặc sử dụng hàm&nbsp; <strong>intersection().<br>VD</strong><br>A ={1,2,3,4}</div><div>B ={3,4,5,6}</div><div>#2 cách dưới sẽ cùng cho một kết quả</div><div>print(A &amp; B)</div><div>print(A.intersection(B))</div><div>#return {3, 4}<br>Hàm <strong>difference</strong></div><div>Hàm này được mô tả như <strong>phép trừ</strong> hai set trong python. Phép trừ sẽ trả về một tập hợp các giá trị chỉ có ở <strong>set A hoặc set B</strong>. Phép trừ được thực hiện bằng cách <strong>sử dụng -toán tử</strong>. Tương tự có thể được thực hiện bằng hàm <strong>difference().<br>VD<br></strong>A ={1,2,3,4}</div><div>B ={3,4,5,6}</div><div>#2 cách dưới sẽ cùng cho một kết quả</div><div>print(A - B)</div><div>print(A.difference(B))</div><div>#return {1, 2}</div><div>#{1, 2} chỉ có ở A mà không có ở B</div><div><br><br></div>]]></description>
         <enclosure url="" />
         <pubDate>2023-03-23 20:53:44 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529459130</guid>
      </item>
      <item>
         <title></title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529459872</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1332969295/b2522b6b63a4d0f17aaf0b224e6d1622/image.png" />
         <pubDate>2023-03-23 20:54:40 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529459872</guid>
      </item>
      <item>
         <title></title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529460779</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1332969295/208c456e730a78d38e5f7256a30b9dc0/image.png" />
         <pubDate>2023-03-23 20:55:54 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529460779</guid>
      </item>
      <item>
         <title></title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529461618</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1332969295/c9362221b0b2a07ffaabceca9dc3173d/image.png" />
         <pubDate>2023-03-23 20:57:06 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529461618</guid>
      </item>
      <item>
         <title></title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529463318</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1332969295/e6daea57119d83637f1927624fc44f88/image.png" />
         <pubDate>2023-03-23 20:59:24 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2529463318</guid>
      </item>
      <item>
         <title></title>
         <author>anhnd3110</author>
         <link>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2530159506</link>
         <description><![CDATA[]]></description>
         <enclosure url="https://padlet-uploads.storage.googleapis.com/1332969295/868bbfeea795c80fbcf37a853c27c05b/image.png" />
         <pubDate>2023-03-24 09:23:57 UTC</pubDate>
         <guid>https://padlet.com/anhnd3110/j2gg0a541ny8wkgg/wish/2530159506</guid>
      </item>
   </channel>
</rss>
