Cursos
Cursos
Compilador de Código
Compilador de Código
Debatir
Precios
Teams
Iniciar sesión
Registrarse
Menu
Sesiones de PyR
Buscar
Buscar
Haz una pregunta
Haz una pregunta
Whats the logic behind this code snippet?? Wen I run it, it returns [3,6,9,3]
arraylist
arrays
1 Voto
4 Respuestas
12th Jan 2021, 3:02 PM
Rex Nerdy
void is used here and still it returns a value,why?
java
reference-types
value-types
0 Votos
2 Respuestas
23rd Sep 2016, 2:09 PM
harshita
Why on sololearn cpp compiler returns unsused variable in for (auto i : arr)?
cpp
for
iterators
0 Votos
6 Respuestas
26th Aug 2021, 4:02 PM
nicolas turek
Why size of varible var returns a value of 4?
c++
sizeof
1 Voto
1 Respuesta
25th Jan 2018, 9:06 AM
Amit Kumar
Web API that returns Hello World asynchronously in ASP.NET Core?
.net-core
asp.net
autofac
c#
jquery
mvc
0 Votos
1 Respuesta
22nd Aug 2018, 10:41 PM
rabin rai
How to check how many functions returns None in a specific class ?
func_signature
python
0 Votos
3 Respuestas
5th Jul 2021, 9:41 AM
Ratnapal Shende
Fill in the blanks to declare a function that returns the square of its argument, call it with the value 42 using a function poi
100
awsm
c++++
right
yo
3 Votos
4 Respuestas
30th Aug 2020, 4:39 PM
SAGAR ROHILLA
How to write a function that accepts text as input and returns the number of characters?
python
0 Votos
7 Respuestas
5th Oct 2021, 12:47 PM
Алексей Иванов
Why foreach returns only the last value from an array correctly? Solved! Thanks to Anand Bhatnagar!
arrays
bhatnagar
domains
file.txt
foreach
ip
jakubec
php
10 Votos
3 Respuestas
15th Sep 2017, 7:55 PM
JaMi
How do I stop calling a function when it returns NULL pointer? [C]
c
functions
memory
null
pointers
1 Voto
2 Respuestas
1st Jan 2020, 11:23 PM
ja008
Python function that returns a Boolean result based on whether the string parameter passed in is an integer.
python3
-2 Votos
11 Respuestas
27th Aug 2021, 2:46 PM
Kavitha AV
Why printing(num.pop()) returns the index 0 and num=num.pop() removes index 0 from set?
python
sets
3 Votos
2 Respuestas
10th Aug 2016, 2:44 AM
Jose Altagracia
Average =10/4; Returns 2.0 not 2.5 Pls suggest me to correct this
.
0 Votos
1 Respuesta
26th Apr 2020, 1:52 PM
Deepak Sandha
"If __ne__ is not implemented, it returns the opposite of __eq__. "75.1 OOP
magic-methods
0 Votos
2 Respuestas
15th Oct 2021, 7:02 PM
xvxvx
How to return multi-dimensional arrays from function in C++?
arrays
function
multi-dimensional
returns
3 Votos
3 Respuestas
5th Feb 2019, 1:52 PM
777
"getchar() Returns the value of the next single character input." What does this mean ?
input
output
0 Votos
6 Respuestas
31st Dec 2020, 1:36 PM
Sembi Emmanuel
While using scanf it works fine but when I use fgets instead of scanf it only returns 1.
c
fgets
input
scanf
0 Votos
10 Respuestas
26th Jul 2021, 12:06 PM
Kishan Khanna
Does generator create the list first or it returns by demand?
generators
python
0 Votos
1 Respuesta
16th Sep 2016, 2:08 AM
mohsen jamali
FIXED. (HELP: getElement returns null when it worked before! Tried to fix it all day and nothing changed.)
bug
getelementbyid
help
html
javascript
js
null
queryselector
self-learning
style
0 Votos
8 Respuestas
11th Jan 2024, 12:53 AM
Bianca Clara Correia Kusunoki
`ForEach` only returns undefined and `map` and `reduce` do not work on this problem. How to make code work?!
arrow-function
foreach
0 Votos
13 Respuestas
3rd Feb 2021, 9:00 AM
Emmanuel Riano
Function that receives a string as a parameter and returns the length of that string
c
0 Votos
3 Respuestas
25th Nov 2020, 9:19 PM
Ticcher Leonar
Fill in the blanks to create a lambda function that returns the square of its argument, and call it for the number 8. a = (
a
blanks
create
fill
function
in
lambda
that
the
to
1 Voto
13 Respuestas
12th Jul 2018, 9:56 AM
Patrick Mita
Write a Python function that takes as input a list of integers returns the most occuring and least occuring integers.
python
python3
0 Votos
16 Respuestas
28th Aug 2019, 5:28 PM
Sourav A.S
How can I create a function that reads a positive number and returns it, for loops is a must C++
c++
functions
loops
0 Votos
15 Respuestas
2nd Apr 2021, 10:36 PM
boba
Write a function intreverse(n) that takes as input a positive integer n and returns the integer obtained by reversing the digits
python
0 Votos
6 Respuestas
28th Aug 2018, 6:43 PM
Kuldeep
Why is hasNext() method in java returns true without even adding anything in stdin?
java
-1 Voto
3 Respuestas
1st Dec 2020, 4:40 PM
SAKKURI BHANU PRAKASH
C# void. If void returns nothing then why does it continue to execute the method's statement?
c#
methods
void
0 Votos
4 Respuestas
8th Feb 2022, 5:16 AM
Taukoriri Meita
Write template function that returns the average of three number?(using oop) in C?
c
1 Voto
2 Respuestas
7th Jul 2017, 12:09 PM
Areeba Ahmed
Very interesting question, why the function returns false if I join all strings into one word?
c++
strings
1 Voto
3 Respuestas
27th Dec 2022, 4:08 AM
TeaserCode
Why this code returns just one answer (0) whereas the letter p appears twice in the list ?
index
lists
python
1 Voto
8 Respuestas
21st Sep 2018, 10:55 AM
s l
Given a list of people’s heights in metres. Write a function that returns the average height and the total height
kotlin
lists
1 Voto
9 Respuestas
31st May 2020, 5:14 PM
Irine Nabwire
Function overloading - weird number returns when return is not provided. what is this number?
c++
functions
0 Votos
5 Respuestas
4th Sep 2017, 9:48 AM
rakesh c
The forEach() method on arrays returns undefined, how do we use it without logging to the console or calling the alert function
arrays
foreach()
javascript
1 Voto
13 Respuestas
11th Jan 2022, 7:25 PM
JUSTIN KPAKPA
Write function prototype of a function Calc which receive two integers and returns their average
function
java
0 Votos
3 Respuestas
10th Feb 2019, 3:59 PM
Manvi Jaiswal
Fill in the blanks to define a function that takes two numbers as arguments and returns the smaller one.
python
0 Votos
7 Respuestas
19th Apr 2020, 7:25 PM
Quentin Long
Write the functions that performs the following (i)takes in three numbers and returns the largest number
write
0 Votos
4 Respuestas
13th Sep 2018, 10:28 AM
Michael
i need your help, trying to change image source by class clicking button butnit returns error
javascript
website
0 Votos
4 Respuestas
10th Nov 2018, 9:41 AM
Giorgi Macharashvili
why if math.abs parameter is a negative integer then it returns a positive integer
java
math
0 Votos
3 Respuestas
28th Sep 2016, 11:38 AM
Raghavendrachar B
Trying to write a function that returns the average of it's two arguments. What's wrong with my code?
average
code
css
expression
functions
html
javascript
1 Voto
7 Respuestas
12th Jun 2017, 5:04 PM
DIY Mods
In c language if function data type is void and it returns 1, then it will give error or compile successfully
c
return
void
3 Votos
7 Respuestas
15th Sep 2020, 4:20 PM
kishor pawar
hello, why "innerHTML " do not work , it returns an error "can't play, innerHTML" of null""
var
0 Votos
4 Respuestas
28th Aug 2019, 10:57 AM
Bia
Hw do u write afunction that takes multiple words as itsarguments& returns a concatenated version of those words separated by(-)
python3
1 Voto
8 Respuestas
28th Jan 2021, 2:19 PM
simbarashe
Nested for, while, and do while loop returns blank white in output, why? JavaScript
javascript
0 Votos
1 Respuesta
11th Aug 2020, 9:34 PM
Hawk Strattus
Fill in the blanks to create a method that calculates and returns the sum of its parameters.
respuesta
-2 Votos
2 Respuestas
18th Nov 2021, 10:13 PM
Fernando Omar Arciniega Martinez
[Solved] If func returns a list that I'll go over with a for loop and I won't be using the func again, which is preferred:
python
2 Votos
13 Respuestas
22nd Apr 2022, 3:21 PM
Korkunç el Gato
what will happen if our function requires atleast one parameter and returns nothing execept some string of characters
functions
0 Votos
5 Respuestas
5th Oct 2019, 8:11 PM
Muhammad Usman
Why do the methods with the return type void still returns a value?
method
returntype
void
0 Votos
1 Respuesta
1st Jan 2017, 7:43 AM
Usama Zahid
So the write method returns an int showing how many bytes were included?
files
python
0 Votos
1 Respuesta
9th Aug 2016, 5:18 AM
Victor Lopes Facó
Is there a standard function or in math functions that returns the sign of a float?
c
c++
function
2 Votos
3 Respuestas
8th Nov 2017, 9:56 PM
imed guebli
How would my def need to be so that if I enter 'hello everyone' it returns '#HelloEveryone'?
def
python3
0 Votos
2 Respuestas
28th Jul 2020, 6:35 PM
Ale
Haz una pregunta
Haz una pregunta
Haz una pregunta
Haz una pregunta
< Anterior
1
...
3
4
5
...
7
Siguiente >
En tendencia hoy
Need a personal tutor
1 Votes
I can't figure out how to use the getElementById code in JavaScript Code Playground, I've tried multiple times and watched YT
0 Votes
Fix code
0 Votes
..
1 Votes
How can I turn my .py files to .exe files?
1 Votes
Software to write and run codes
1 Votes
How Much RAM is Required for Object Detection Project
0 Votes
Add lua
0 Votes
How to learn C++ and how long does it take
1 Votes
Summary please??
0 Votes