0
Please explain concept of line 2......it returns de = (0,90,20) .......how🤔🤔
Line 1. d = range (0,90,2) Line 2. de = d[::10] Line 3. print (len(de)) Output 5
2 Respostas
+ 2
d = range(0,90,2)
which will return
0 2 4 6 8 10 12 14 16 18 20 22 24 ... 88
de = d[::10]
which will return
0 20 40 60 80
First we took all multiple of 2
then multiple of 10
So in final we got multiple of 20
that's why de = (0,90,20)
Hope It Helps You 😊
0
Hacker Badshah I got it thanks bro