How many elements are there in the Numbers list?
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.
Numbers OUTPUT: [10, 20, 30] WHY IT SHOWING ALL THE ELEMENTS? It should show 3.
1 answers ( 0 marked as helpful)
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