• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu

Q&A Discussions

Hello guys right now I am kinda of new in python my question is related to the function call len() len() its print out the character but here it's the confusing part, I am working with a list let me explain an example players ['lee', 'bob', 'moe', 'joe'] len(players) 4 why it's giving me 4 item in the list I thought len it counts the characters and if I do this it give me the correct somewhat answer what I am seeking, len(players [-1]) 3
python
0 Votes
8 Answers
4th Jul 2016, 7:06 PM
Talha Khan
Talha Khan - avatar
< Previous1...34Next >
Hot today
Functions in python
1 Votes
HTML
1 Votes
For Mobile app
0 Votes
What’s the One Thing That Helped You Learn Coding Faster?
2 Votes
How can you find whether a number is odd or even in a different way(other than (x%2==0))?
0 Votes
I need advice
0 Votes
Answer please
0 Votes
this query always result to be incorrect from Sorting Data lesson
1 Votes
I need advice
0 Votes
Why this code fails even without data race
0 Votes