0

What is the output of this code? a, b, c, d, *e, f, g = range(20) print(len(e))

answer plz

12th Mar 2020, 8:34 AM
Robbin Omobamidele
Robbin Omobamidele - avatar
4 Answers
+ 13
You can check the output by writing this code in Code Playground. Ouput might be 14 because first four numbers are assigned to a,b,c and d. last 2 are assigned to f,g and rest (20-4-2== 14) are assigned to e (because of *)
12th Mar 2020, 8:36 AM
Utkarsh Sharma
Utkarsh Sharma - avatar
+ 6
14
28th Oct 2020, 8:22 AM
M. santhosh
M. santhosh - avatar
+ 2
What is the output of this code? a, b, c, d, *e, f, g = range(20) print(len(e)) Ans: 14
6th Dec 2020, 5:25 PM
IRFAN KHAN
IRFAN KHAN - avatar
+ 2
14
2nd Jan 2021, 9:26 AM
Rafeek Biradar
Rafeek Biradar - avatar