The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

How many elements are there in the Numbers list?

How many elements are there in the Numbers list?

0
Votes
1
Answer

How many elements are there in the Numbers list?
Numbers = [10, 20, 30]
len(Numbers)
Numbers
OUTPUT: [10, 20, 30]
WHY IT SHOWING ALL THE ELEMENTS? It should show 3.

1 Answer

365 Team
0
Votes

Hi Raj, 
in order to see the len(Numbers), this should be the last line in your cell. So, if you remove the Numbers line, you’ll get the desired output
 
Best, 
Eli

Thank you, Eli

6 months
×
LAST CHANCE
Ready to Learn Data Science?
50% OFF