+ 4

any opinions about this code.....

aa=[i for i in range(8)] for i in aa: aa.remove(i) print(sum(aa))

23rd Jul 2020, 2:14 AM
Tek Narayan mehato
Tek Narayan mehato - avatar
3 odpowiedzi
+ 15
The output is 16
23rd Jul 2020, 2:20 AM
Simba
Simba - avatar
+ 2
aa=[1,3,5,7] sum(aa)=16
23rd Jul 2020, 6:25 AM
Baratov Hojiakbar
Baratov Hojiakbar - avatar
0
how...? .show me ur process dude...
23rd Jul 2020, 2:23 AM
Tek Narayan mehato
Tek Narayan mehato - avatar