min..max 0..1 → 0個か1個 1 → 必ず1個 1..* → 1個以上 2..5 → 2〜5個 * → 何個でもOK ③ 複数OK(*) class Author: def __init__(self): self.books = [] # 何冊でもOK def write_book(self, title): self.books.append(title) author = ...
# やりたいこと: 1から5までの数字を2倍にしたリストを作る numbers = [1, 2, 3, 4, 5] # 従来の方法(forループ) result = [] for x in ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する