Post

Python Programming
Python Programming@PythonPr·
Python Output Challenge 90% beginners give the wrong answer 🤔
Python Programming tweet media
English
28
10
88
14.9K
Coding Computing Coach
Coding Computing Coach@CodingComputing·
@PythonPr Answer: 5 Solution: len is a built-in function to calculate the length of the object. "Hello" is a string of 5 characters. So, its length is 5. Thus, len("Hello") gives 5. That is what gets printed.
English
0
1
1
126
Salvo Micciché
Salvo Micciché@salvomic·
@PythonPr the 90% of people should know that "len()" is for "length", so the length of "Hello" is 5 😊
English
0
0
5
752
Gopuff
Gopuff@gopuff·
There's no middleman here to mark things up. Orders come straight from our shelves to you in as fast as 15 minutes.
English
92
131
1K
10.2M
Charles
Charles@chucky3528211·
@PythonPr 5 Yes, len(s) where s = "Hello" will output 5, since the string "Hello" has 5 characters.
English
0
0
3
741
Marzia 🎒
Marzia 🎒@marzieh_H313·
@PythonPr Gotcha It's 5 cz I guess we the number could correspond to the number of letters in hello 😍
English
0
0
1
719
C.A. Moses
C.A. Moses@techwithmomo·
@PythonPr Before talking about the Len() you need to understand that python treats every string as an array of character. Yes. That means every char is its own individual string within a collection. So the Len() count this individual strings within the collection and return is length.
English
1
0
1
459
BIGO LIVE
BIGO LIVE@BIGOLIVEapp·
Up late and bored? Tap into live conversations.
English
31
30
440
5.9M
Precious
Precious@dsecuritygirlie·
@PythonPr So I'm among the 90% that don't know it 🤧
English
0
0
1
367
Abubakar Lawali
Abubakar Lawali@VibeCdr·
@PythonPr Len, count the number of digit/alphabet, list or set in the string. So the answer is 5
English
0
0
2
335
MysteryVibe
MysteryVibe@mysteryvibe·
Most men wait until it's awkward, you won't. It's time to be proactive about ED. Join over 100,000+ men who trust Tenuto. 50% off sitewide this summer. 🌞
English
4
1
44
277.3K
Paylaş