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
5 RĂ©ponses
+ 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