<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>HK29</author_name>
  <author_url>https://blog.hatena.ne.jp/HK29/</author_url>
  <blog_title>PythonとVBAで世の中を便利にする</blog_title>
  <blog_url>https://hk29.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>本記事では、リストに対して、組み込み関数sorted()によりリストを作成する例を載せました。次のような小文字と大文字が混在してるアルファベットを要素とするリストを例とします。 my_list = ['a', 'B', 'c', 'D', 'x', 'y', 'Z'] 1. 文字サイズを区別してソートしたい場合は、次のようにします。 # 大文字、小文字を区別してソート my_list_1 = sorted(my_list) 2. 文字サイズを区別せずにソートしたい場合は、次のようにkeyを使います。 # 大文字、小文字を区別せずにソート my_list_2 = sorted(my_list, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhk29.hatenablog.jp%2Fentry%2F2021%2F07%2F20%2F235826&quot; title=&quot;Python 大文字,小文字を区別せずにソートする。逆順にソートする。sorted()関数 - PythonとVBAで世の中を便利にする&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/H/HK29/20210720/20210720234700.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-07-20 23:58:26</published>
  <title>Python 大文字,小文字を区別せずにソートする。逆順にソートする。sorted()関数</title>
  <type>rich</type>
  <url>https://hk29.hatenablog.jp/entry/2021/07/20/235826</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
