+ 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