New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
Java 8, stream.map
arrays
code
java
0 Votes
1 Answer
11th Feb 2021, 7:07 AM
Johnatan Rafael Santiago Cigala
Why does it output { 7, 8, 9} out of order, but instead { 8, 9, 7}?
moment.
notclear
1 Vote
4 Answers
22nd Sep 2023, 3:35 PM
Хорошо
Why in Java result = 8, but in C result = 9
c
java
20 Votes
41 Answers
10th Jun 2019, 7:29 PM
UraL
why output like this [4, 6, 8, 9]
prime
python3
1 Vote
1 Answer
29th Mar 2023, 6:13 AM
Muhammed Rishad. K
Python: why does first class print 8, but secont doesn't?
classes
constructors
function-arguments
python
2 Votes
3 Answers
21st Jun 2020, 4:54 PM
Paolo De Nictolis
Why the output of the program is "4, 4, 8, 1"???
data-types
2 Votes
8 Answers
25th Sep 2018, 12:48 PM
Khokhar Jeelani
list = [1, 1, 2, 3, 5, 8, 13] print(list[list[4]])
list
1 Vote
3 Answers
12th Feb 2021, 11:20 PM
Tom Clark
a = [ 1, 7, 8, 68, 76] print(::-2)
python
-3 Votes
2 Answers
20th Nov 2021, 6:46 AM
Keerthinivaas G.K
why does this code give: [2, 3, 5, 56, 7, 8, 4]
python
0 Votes
5 Answers
10th Jun 2021, 1:31 PM
SammE
Am confused 🤔 here, why it Outputs [0, 1, 8, 27, 64] anyone to help me.
comprehension
list
listcomprehension
1 Vote
9 Answers
3rd Mar 2022, 6:01 AM
David Mphande
Why the output {8, 9, 7} not {7, 8, 9} ?
python
sets
0 Votes
2 Answers
13th Jul 2017, 10:23 PM
Revian Budiman
Fill in the blanks to declare a method that has two int parameters with default values 6 and 8, respectively, and displays their
c#
0 Votes
3 Answers
18th Apr 2021, 3:02 PM
Ilya Ermishin
a =[ 1, 1, 2, 3, 5, 8, 19, 21, 34, 55, 89 ]
a.instead
ofprinting
th
0 Votes
4 Answers
17th Jan 2021, 1:35 PM
Vishnu Muralidhar
What is the output of this code? list = [1, 1, 2, 3, 5, 8, 13] print(list[list[4]])
python
0 Votes
3 Answers
9th Apr 2018, 7:21 AM
VISHWA PRIYA M
What is the result of this code? nums = [9, 8, 7, 6, 5] nums.append(4) nums.insert(2, 11) print(len(nums))
lists
python
-1 Vote
5 Answers
5th Dec 2016, 12:11 PM
Alisha Leay
Pls I need a java code to count numbers like this 1, 2, 4, 8, 16, 32, 64
c#
java
javascript
php
website
2 Votes
5 Answers
14th Oct 2017, 12:19 PM
IBTECH
How can i merge two sorted array lists in order to produce one sorted array list? The inputs should be in ascending order .. lets say first array [ 2, 4,8,8,15 ] and the other one [ 4, 7, 8, 8, 8, 10] and return the merged array
arrays
java
0 Votes
3 Answers
20th Dec 2016, 6:50 PM
Serxhio
Помогите разобраться list = [1, 1, 2, 3, 5, 8, 13] print (list[list[4]]) Почему когда я выдаю ответ 5 он засчитывает, как неправильный?
python
4 Votes
9 Answers
7th Aug 2016, 9:54 AM
Anastasiya
What's wrong with my "input number of terms", why is 8, but my input is 5
c
0 Votes
1 Answer
29th Sep 2019, 4:00 PM
Yilin Lian
Given a number x = 8, find a number from 2 to 9, which can divide x without remainder
factors
java
multiples
0 Votes
2 Answers
27th Aug 2019, 11:59 AM
stephen haokip
Find the missing elements in the list - i have 1to n?array= [1, 2, 3, 4, 5, 6, 8, 9, 10]
lists
python
python3
0 Votes
3 Answers
22nd Feb 2022, 5:59 AM
Manoj Bhaagam
Can anyone please explain why the output of this operation print(second - first) is {8, 9, 7} not {7, 8, 9} ?
python
sets
3 Votes
4 Answers
8th Oct 2016, 3:58 AM
Mena Khalaf Louis
[82, 12, 41, 38, 19, 26, 9, 48, 20, 55, 8, 32, 3] how to display numbers that have number 2 in the array
algorithm
arrays
java
2 Votes
4 Answers
7th May 2020, 2:42 AM
IKHWAN HABIBI
a = [1,1,2,3,5,8] for a[1] in a: pass print(a) result :[1, 8, 2, 3, 5, 8] want to know how index-1 is replaced as 8.
python
2 Votes
3 Answers
22nd Nov 2019, 6:03 AM
Sreeraj V A
I need help . Write a complete c++program in which you have array.ar [5]={1, 6, 8, 9, 7}. In which user choose 3numbers from the
for
loops
5 Votes
2 Answers
18th Dec 2016, 3:28 PM
F.Heeh. 2nd Yr. Hebron University
Fill in the blanks to extract all items that are less than 5 from the list. nums = [1, 2, 5, 8, 3, 0, 7] res = list( filter
answer
-5 Votes
5 Answers
8th Nov 2020, 11:22 AM
Jack Bradshaw
Q12. Reverse an array in groups of given size Input: arr = [1, 2, 3, 4, 5, 6, 7, 8, 9] k = 3
python
0 Votes
3 Answers
4th Jan 2017, 3:36 PM
manish
first = {1, 2, 3, 4, 5, 6} second = {4, 5, 6, 7, 8, 9} third={2,4,6,8,0} fourth=([4,6,8,5]) print(first | second | third ) prin
set
0 Votes
3 Answers
15th May 2020, 6:12 AM
Taiwo Yusuf
Fill in the blanks to declare a method that has two int parameters with default values 6 and 8, respectively, and displays their
c#
0 Votes
1 Answer
18th Jul 2023, 9:39 AM
dhatchanamoorthy m
Why in first case, value of "i" is 8, but in second case, value is 0? I only made a declaration of variable "i"? Does anyone kno
c++
variable
1 Vote
2 Answers
20th Sep 2019, 1:35 PM
James Anderson
why the code second-first print 8,9,7 and not 7,8,9? first = {1, 2, 3, 4, 5, 6} second = {4, 5, 6, 7, 8, 9} print(second - first)
python
sets
1 Vote
5 Answers
10th Aug 2016, 10:36 PM
Ido Tal
1. What will be the output? 1. >>> m = [[x, x + 1 , x + 2] for x in ran a) [[1, 2, 3], [4, 5, 6], [7, 8, 9]] b) [[0, 1, 2], [1, 2, 3], [2, 3, 4]] c) [1, 2, 3, 4, 5, 6, 7, 8, 9] d) [0, 1, 2, 1, 2, 3, 2, 3, 4]
lists
python
-1 Vote
7 Answers
5th Jul 2016, 6:47 AM
shekhar
What happens if I assign a variable x to 8, and Y to x, can i later change what value x holds? Or is Y forced to be equal to 8?
ruby
variables
2 Votes
4 Answers
2nd Jun 2017, 9:40 AM
william
Given a list of numbers, output their sum using for loop.
[42,
0,
1,
124,
3,
555,
67,
7,
8,
8897,
99]sum=0for
i
in
s
x:
x=
0 Votes
6 Answers
18th Jul 2022, 9:40 AM
Syed Anas
Ask a question
Ask a question
Ask a question
Ask a question
Hot today
Need suggestions what improvements can I do in it
3 Votes
What is the generally preferred way of assigning values in Python?
2 Votes
Help me plss
0 Votes
Android studio emulator
0 Votes
I can't understand the problem , please help ...
1 Votes
[SOLVED] About split() Function
1 Votes
help me
0 Votes
Return function
0 Votes
From code challenges
0 Votes
What programming language can I start learning to program mobile games, and where could I start programming the basics?
0 Votes