Home
My Books
Browse ▾
Recommendations
Choice Awards
Genres
Giveaways
New Releases
Lists
Explore
News & Interviews
Loading...
Community ▾
Groups
Quotes
Ask the Author
People
Sign in
Join
Jump to ratings and reviews
Want to Read
Shop this series
Rate this book
Python for Super Beginners 2
Tack
,
Chop
0.00
0 ratings
0 reviews
Want to Read
Shop this series
Rate this book
プログラミングの必要性がよく話題になりますが、まだまだプログラミング学習書は難しいものが多く見られます。本書は、プログラミングを全く知らない超初心者のために書かれた本です。 前作(セットアップ・文字列・数値編)に引き続き、超初心者に優しく Python を解説していきます。本書では代表的な型であるリスト・タプル・ディクショナリに加えて、繰り返し操作に欠かせない for ループについて学習します。さらに、発展的な学習のために Python 公式ホームページの見方についても解説します。 《本書より抜粋》 リストのインデクシング それでは、リストの要素をとりだしてみましょう。文字列の時にも学習したと思いますが、要素は先頭から順番に 0, 1, 2, 3... と番号が振られています。これをインデックスといい、インデックスに従って値を取り出すことを インデクシングといいます。0から始まるので、インデックスは以下のように割り振られていることになります。 ["a", "b", "c", "d", "e"] 0 1 2 3 4 それでは、リストの要素を取り出してみましょう。リスト ["a", "b", "c", "d", "e"] から、0番目の要素を取り出してみましょう。 入力画面 print ["a", "b", "c", "d", "e"][0] 出力ஹ
113 pages, Kindle Edition
First published March 16, 2015
Book details & editions
About the author
Tack
41 books
Follow
Follow
Ratings
&
Reviews
What do
you
think?
Rate this book
Write a Review
Friends
&
Following
Create a free account
to discover what your friends think of this book!
Community Reviews
0.00
0 ratings
0 reviews
5 stars
0 (0%)
4 stars
0 (0%)
3 stars
0 (0%)
2 stars
0 (0%)
1 star
0 (0%)
Search review text
Filters
No one has reviewed this book yet.
Join the discussion
Add
a quote
Start
a discussion
Ask
a question
Can't find what you're looking for?
Get help and learn more about the design.
Help center