¡Nuevo curso!
¡Todo programador debería aprender
IA Generativa!
Prueba una lección gratuita
Cursos
Cursos
Compilador de Código
Compilador de Código
Debatir
Hazte Pro
Teams
Iniciar sesión
Registrarse
Menu
Sesiones de PyR
Buscar
Buscar
Haz una pregunta
Haz una pregunta
Java 8, stream.map
arrays
code
java
0 Votos
1 Respuesta
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 Voto
4 Respuestas
22nd Sep 2023, 3:35 PM
Хорошо
Why in Java result = 8, but in C result = 9
c
java
20 Votos
41 Respuestas
10th Jun 2019, 7:29 PM
UraL
why output like this [4, 6, 8, 9]
prime
python3
1 Voto
1 Respuesta
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 Votos
3 Respuestas
21st Jun 2020, 4:54 PM
Paolo De Nictolis
Why the output of the program is "4, 4, 8, 1"???
data-types
2 Votos
8 Respuestas
25th Sep 2018, 12:48 PM
Khokhar Jeelani
list = [1, 1, 2, 3, 5, 8, 13] print(list[list[4]])
list
1 Voto
3 Respuestas
12th Feb 2021, 11:20 PM
Tom Clark
a = [ 1, 7, 8, 68, 76] print(::-2)
python
-3 Votos
2 Respuestas
20th Nov 2021, 6:46 AM
Keerthinivaas G.K
why does this code give: [2, 3, 5, 56, 7, 8, 4]
python
0 Votos
5 Respuestas
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 Voto
9 Respuestas
3rd Mar 2022, 6:01 AM
David Mphande
Why the output {8, 9, 7} not {7, 8, 9} ?
python
sets
0 Votos
2 Respuestas
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 Votos
3 Respuestas
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 Votos
4 Respuestas
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 Votos
3 Respuestas
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 Voto
5 Respuestas
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 Votos
5 Respuestas
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 Votos
3 Respuestas
20th Dec 2016, 6:50 PM
Serxhio
Помогите разобраться list = [1, 1, 2, 3, 5, 8, 13] print (list[list[4]]) Почему когда я выдаю ответ 5 он засчитывает, как неправильный?
python
4 Votos
9 Respuestas
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 Votos
1 Respuesta
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 Votos
2 Respuestas
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 Votos
3 Respuestas
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 Votos
4 Respuestas
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 Votos
4 Respuestas
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 Votos
3 Respuestas
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 Votos
2 Respuestas
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 Votos
5 Respuestas
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 Votos
3 Respuestas
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 Votos
3 Respuestas
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 Votos
1 Respuesta
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 Voto
2 Respuestas
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 Voto
5 Respuestas
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 Voto
7 Respuestas
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 Votos
4 Respuestas
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 Votos
6 Respuestas
18th Jul 2022, 9:40 AM
Syed Anas
Haz una pregunta
Haz una pregunta
Haz una pregunta
Haz una pregunta
En tendencia hoy
Projects in Intermediate JavaScript
0 Votes
Web browser not accepting my code
0 Votes
What is the certificate at the end?
2 Votes
Hello world
2 Votes
Manual Ai(human)or the new Gen Ai, what benefits will it bring
2 Votes
Can any one suggest me how to use app
0 Votes
How return works and what is it used for?
1 Votes
Hello programming lovers 👋🏻
1 Votes
Please help I don’t know next step CODERS PLEASE HELP
1 Votes
Random number
1 Votes