0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

aku

Posted at

1.print関数を使って配列の中身を出力する場合は、以下に添付しています。
list = [1, 2, 5, 9]
print (list)
2.配列にデータを追加する場合は、appendメソッドというものを使います。
list = [1,2, 5, 9]
list.append(10)
print(list)
#list.insert
配列の要素を削除したい場合はpopメソッドが便利です。
list = [1, 3, 4, 6]
list.pop(0)
print(list)

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?