0
What is the output of this code? a, b, c, d, *e, f, g = range(20) print(len(e))
answer plz
4 Answers
+ 14
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 *)
+ 6
14
+ 2
What is the output of this code?
a, b, c, d, *e, f, g = range(20)
print(len(e))
Ans: 14
+ 2
14