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

single

bookStrings Have Length

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

There is also a very useful function in Python that can give the length of a string -- len() function. Let's look at the example of using this function.

123
string = 'watermelon' length = len(string) print(f'the length of the string "{string}" is {length}')
copy
タスク

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

You have such strings apple,grape, orange. You have to get the length of each of these strings. Using such comparison operators >, < determine the longest string.

解答

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

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

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

セクション 3.  8
single

single

AIに質問する

expand

AIに質問する

ChatGPT

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

some-alt