Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Check String | Strings
Python Data Types
セクション 3.  9
single

single

bookCheck String

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

Very often it hits that we need to check for the presence of some character or word in the string, and in order to realize this, we should use such a key word as in. As a result, we get a boolean value: True if such a character or substring is present in the string, and False - in the opposite case. For a better understanding, let's look at an example.

123
string = 'Pear Lime Banana' print('Lime' in string) print('Mango' in string)
copy
タスク

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

You have a string. You should check that this line contains such substrings Lorem, python, consectetur. If there is such a substring, then calculate its length.

解答

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

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

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

セクション 3.  9
single

single

AIに質問する

expand

AIに質問する

ChatGPT

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

some-alt