Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Accessing String Elements | Basic Concepts
String Manipulation in Python
セクション 1.  3
single

single

bookAccessing String Elements

メニューを表示するにはスワイプしてください

Now we know how we can create a string: both single and multiline. Now we need to learn how can we access certain elements in the string.

Elements in a string can be accessed by using indices. The very first index is 0, not 1. Therefore, if a string has 10 elements, the very last index will be 9.

タスク

スワイプしてコーディングを開始

Given variable course with the string String Manipulation in Python. Your tasks are:

  1. Extract the element with index 7.
  2. Extract the 12th element.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 1.  3
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt