セクション 3. 章 8
single
Strings 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.
123string = 'watermelon' length = len(string) print(f'the length of the string "{string}" is {length}')
タスク
スワイプしてコーディングを開始
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.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 3. 章 8
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください