LoginSignup
0
0

More than 1 year has passed since last update.

python 配列を作る

Posted at

はじめに

pythonの配列について学ぶ

教科書

ゴール

pythonで配列を作る。作った配列から文字を抜き出す

実施内容

配列を作る
>>> squeres = [1,3,5,7,9]
>>> squares

[1,3,5,7,9]と出力される

配列の一番左の値を抜き取る
>>> squares[0]

0が一番左の数値を抜き取る

配列に配列を足す
>>> squares + ['a','b','c','d']

[1,3,5,7,9,'a','b','c','d']と出力される

メモ

文字を配列に入れるときは''で囲む。忘れない

0
0
0

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