0

Doubt program

empty_list=[2,] print(empty_list) what will be the output ?? in courses it is given 1 and when I run it it is showing me 2 then what is the actual answer of this code?

23rd Jun 2020, 5:42 AM
Devika Krishnan
Devika Krishnan - avatar
3 Answers
+ 2
Devika Krishnan For the second quiz in the Python Lists lesson. The question is HOW MANY items are in the list. Answer is totally 1 item because the empty after comma is not counted. šŠš¢š¢š›šØ š†š”ššš²ššš„ Quiz cannot be linked, only the lesson can be linked. But we can check the user profile, and base on the tag of this question, to estimate where the quiz is.
23rd Jun 2020, 5:50 AM
Gordon
Gordon - avatar
+ 1
Kk thankšŸ˜Š I got it
23rd Jun 2020, 5:53 AM
Devika Krishnan
Devika Krishnan - avatar
0
I don't know how to link that topic But the topic was about list in python
23rd Jun 2020, 5:52 AM
Devika Krishnan
Devika Krishnan - avatar