Why does it say there is 1 item in the list while there are four items? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why does it say there is 1 item in the list while there are four items?

nums = ["hi" "how" "are" "you"] print (nums) print(len(nums))

3rd Aug 2016, 3:19 PM
Nadir Nour
Nadir  Nour - avatar
2 Answers
+ 3
u didn,t use commas there
4th Aug 2016, 2:02 AM
shawn frost
shawn frost - avatar
0
Thanks. That is it!
3rd Aug 2016, 3:25 PM
Nadir Nour
Nadir  Nour - avatar