+ 22
[OFF-TOPIC] FINALLY !! Archived the badge of "Quiz Creator Master"
Archived 100 quizzes in the lenguages JS, CPP, JAVA, PHP, PY and RB... I only need C# I share my last two quizzes (Do you know the answers) ? ** JAVA ** What is the output of this code? int[] a = {1, 2, 3, 4, 1}; for (int n: a) a[n] = 0; for (int n: a) System.out.println(n); ** PYTHON** What is the output of this code? a = [2, 1, 2, 4] a[1:].remove(2) print(sum(a)) Win 5K XP and archive my best rank global in position #32
14 Answers
+ 16
๐ Congratulations ๐
+ 16
congratulations โ๏ธ๐๐
+ 15
๐๐๐๐๐๐
๐ผ Congratulations๐๐ ๐๐! ๐ผ
๐ฏ๐ฏ๐ฏ๐ฏ๐ฏ๐ฏ
๐ผ๐ผ๐ผ๐ผ๐ผ๐ผ
๐ฑ๐๐ฑ๐ฑ๐๐ฑ
Nice contribution towards community๐จโ๐ฉโ๐งโ๐ฆ
+ 14
Congratulations๐๐๐โจ๐
+ 13
Congratulations, man! I find your quizzes really cool, albeit tricky :) Keep them coming! ๐
+ 10
๐๐๐๐๐๐๐
Congrats!! โบ๏ธโบ๏ธโบ๏ธ
๐๐๐๐๐๐๐
+ 8
great job! congrats!!
+ 8
Congrats Javier!
+ 7
Congrats๐๐
+ 5
Congratulations. 1st Venezuelan in achieving this badge and i do not know if first Latinoamericano.
๐๐๐ถ
+ 5
a[1:] is actually a new list.
so sum of items in a list is 9 (that's the answer)
and sum of items in a list a[1:] is 7
a = [2, 1, 2, 4]
a[1:].remove(2)
print(sum(a))
#output 9
a = [2, 1, 2, 4]
a[1::].remove(2)
print(sum(a[1:]))
#output 7
anyway congratulations ! ๐ ๐
have some fruits ๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐
+ 5
congrats ... !!๐๐๐
+ 5
congratulations @Javier
+ 4
congratulations brother