You can also assign the new elements that you want to add to the list to a new variable as follows: This is a simple way to add elements to a list, let's see more ...
Pythonでリストを扱っていると、「別のリストをつなげたい」と思うことがあります。 そのときに使えるのが extend() です。 文字列を渡すと1文字ずつ展開されるので注意 例文:プレイリストに夏の曲を追加 ☀️ # 現在のプレイリスト(春の曲が中心) my ...