Courses
Courses
Code Compiler
Code Compiler
Discuss
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
How to return each element in list in a seperate new line
python3
0 Votes
3 Answers
6th Dec 2021, 1:49 PM
D.VANITHA
I want return the first letter and the total number of bytes together
python
0 Votes
1 Answer
19th Oct 2020, 2:07 AM
ASHRAFUL HAQUE SULAIMAN
Why do we put a return zero command at the end in c++?
c++
0 Votes
6 Answers
20th Jan 2020, 3:06 PM
Naval Surange
[solved]Does any code after a return statement in a function have any effect?
javascript
js
web
0 Votes
6 Answers
21st Mar 2021, 6:27 PM
Einstein Shilly shally
Which C++ code could you use to return to a main menu?
c++
code
0 Votes
6 Answers
31st Aug 2018, 8:35 PM
Daniel Garcia
What would happen if I write return 1 iin C programming language?
c
3 Votes
2 Answers
22nd Jul 2021, 5:12 AM
Anand Raj
Why does answer return as 10 in a question like 10*100
c++
-1 Vote
5 Answers
16th Mar 2019, 11:56 PM
Michael Ighodalo
l want to program code that compare two values x and y , return 1 if x is greater than y else return 0 if x is equal to y or else return -1 if x less than y . Then program must accept user input
function-arguments
python
0 Votes
6 Answers
13th Oct 2016, 8:20 AM
James T Togara
def aunt(x, y): return x + 2 def log (x,y): return x*y def do_twice(name, x, y): return name(name(x, y), log(x, y)) x = 5 y= 3 print(do_twice(aunt, x, y)) Solve this problem step by step
python
0 Votes
3 Answers
31st Jul 2016, 12:06 PM
Rupam Das
why we are use in return 0 in the statement?
c++
else-statements
0 Votes
4 Answers
30th Sep 2016, 7:47 AM
ALEXANDAR
Hi guys.... What am I missing on my code.i want to return 1 if all the numbers are divisible by two and return 0 if not all
divide
1 Vote
7 Answers
27th Feb 2017, 4:30 PM
Ricardo Chitagu
How function can return 2 arguments with 4 different methods ?
c
code
function-arguments
functions
1 Vote
1 Answer
20th Oct 2018, 9:06 AM
Aisha Ali
'return' for main() termination
c
return
0 Votes
8 Answers
13th Sep 2020, 1:45 PM
Chinmoy
#include <stdio.h> int main() { int n=0,m; for(m=1;m<=n+1;m++) printf("%d%d",++m,m++); return 0; }
c
output
0 Votes
3 Answers
8th May 2022, 5:56 PM
Abhishek Thakur
Why we use return and a number 0 after return??
c
language
0 Votes
3 Answers
1st Apr 2020, 6:55 AM
Charan Elluru
What is the function of return in c++?
c++
0 Votes
1 Answer
27th Sep 2018, 9:45 PM
Artery
Please how can I learn react on sololearn here
return
0 Votes
1 Answer
17th Jul 2023, 5:44 AM
Abdulwasiu
What if i want two integers and return its value ???
c++
functions
1 Vote
5 Answers
29th Dec 2016, 6:57 AM
Aqib Asmat
Returning from functions
python
return
-1 Vote
4 Answers
5th Sep 2021, 11:24 PM
Jonghyun Lee
How to return more than one integer from a function in C?
c
function-arguments
functions
return
0 Votes
4 Answers
30th Oct 2021, 3:27 PM
Ruchika Sehgal
What is difference between return and calling a function
functions
php
0 Votes
3 Answers
30th Nov 2017, 12:37 PM
Rohit Kumar
What's the use and importance of the return statement?
c++
0 Votes
3 Answers
8th Jan 2017, 9:10 PM
Tanishka Prasad
I am asking is the C # method return multiple values
methods
2 Votes
4 Answers
9th Feb 2018, 4:30 PM
mohamed saeed
What is the difference of return and print in python
functions
0 Votes
3 Answers
28th Sep 2018, 9:43 AM
Michael Angelo G. Bongo
How to return a number if possible, else a string.
functions
javascript
0 Votes
2 Answers
24th Oct 2019, 2:51 PM
somebody
include <stdio.h> int main() { int b=7,a; a=b++ + ++b+b++ ; printf ("%d\n",a); return 0; }
@sololearn
2 Votes
7 Answers
22nd Oct 2021, 5:19 AM
Palleni Sasidhar
What is the deifference between return and print statement in python?
functions
2 Votes
2 Answers
7th Aug 2019, 3:43 AM
Akaash Tripathi
How to return the sum of a number in ruby?
algorithms
ruby
0 Votes
2 Answers
13th Nov 2019, 8:40 PM
NELSON J
what return when main method becomes static void
java
methods
0 Votes
2 Answers
23rd Nov 2016, 8:55 AM
rajan kumar gupta
Why does type(type) and type(range) return <class 'type'>?
interactive_console
python
type
0 Votes
1 Answer
26th Feb 2019, 10:21 AM
Osinachi Chukwujama
What does the return type extern stands for?
c++
extern
externvariablr
1 Vote
1 Answer
4th Jan 2017, 4:21 AM
Shishir Ghimire
What is the difference between return 0 and exit(0) in C++?
c++
1 Vote
2 Answers
22nd Sep 2019, 8:26 PM
Arpit Bhardwaj
Given integer n, return the first n row of pascal triangle?
2d
arrays
c++
pascaltriangle
0 Votes
1 Answer
20th Aug 2023, 6:02 PM
Anuj Khare
#include <iostream> using namespace std; int main() { int a=10,b; b=++a+(++a); cout<<b; return 0; }
c++
increment
5 Votes
9 Answers
28th Aug 2017, 1:07 PM
Rishabh Rai
def modify_last(txt, n): s=txt[:] d=txt[-1]*n s,d=gather return "".join(gather) modify_last("Hello", 3) #➞ "Hello
python.string
0 Votes
5 Answers
9th Oct 2020, 12:20 PM
ÄKoderj
[SOLVED] Why is the is_empty function doesn't return a value??
python
stacks
0 Votes
2 Answers
31st Jan 2021, 10:34 AM
K.S.S. Karunarathne
How to return multiple values each in a new line!
python3
0 Votes
1 Answer
9th Sep 2020, 5:56 PM
NG_
what does the code '' return 0'' do in c++?
c++
0 Votes
4 Answers
6th Mar 2017, 6:26 PM
miracle
#include<stdio.h> int main() { printf("%d", sizeof(void *)); return 0; }
.
0 Votes
1 Answer
17th Aug 2018, 7:41 AM
Shah Kevin
Write c++ code to function with return value and with Arguments
c++
-3 Votes
4 Answers
26th Jul 2021, 10:06 AM
Girish Goradiya
Is it possible to use a return method for a char?
java
methods
return
2 Votes
4 Answers
10th Jul 2016, 11:25 PM
AveryBreeze
I tried this code: def multiply_numbers(x, y): if x>y: return x else: return x*y print(multiply_numbers(4, 5)) It says syntax error on line 4. Can someone please help out?
functions
python
1 Vote
7 Answers
31st Aug 2016, 9:58 AM
Odogwudozilla
Why dows mysql return 0 for the unique code?
html5
mysql
php
1 Vote
2 Answers
15th Feb 2018, 1:20 PM
Balázs Rippl
str1 = "hello" str2 = "olleh" if two strings matches will return true otherwise false
python
python3
strings
2 Votes
5 Answers
21st Feb 2022, 5:40 AM
Manoj Bhaagam
What happens if we return 1 at the end of program
c++
0 Votes
4 Answers
7th Jul 2018, 1:10 PM
saran
A constructor must have no explicit return type.What does it means?
constructors
java
0 Votes
4 Answers
24th Aug 2017, 2:04 AM
Md Tauseef Kamal
convert it into lambda def myfunc (x) s=s*2+67 g=29×a return g
python
0 Votes
5 Answers
12th Oct 2016, 9:08 AM
khateeb anwer
How do I return font size after enlarging with <h1>
@java
0 Votes
2 Answers
7th Jun 2021, 2:27 AM
emelyb
How can I write a function that return the minimum and maximum of 6 numbers ?
c++
function-arguments
functions
0 Votes
13 Answers
26th Sep 2018, 9:51 PM
Perican Bongani Sithole
Some briefly describe me what is the work of return "\n".join([self.cont,line,other.cont])?
magic-methods
python
0 Votes
2 Answers
6th Feb 2020, 2:39 AM
Shekhar Sharma
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
21
22
23
...
45
Next >
Hot today
And... Who is the staff then?
5 Votes
Which is the error in this code
1 Votes
Machine learning model debugging
2 Votes
Python IDE
0 Votes
Control Flow
1 Votes
Animations
2 Votes
Can anyone tell me how to code because I’m soo bad at it
1 Votes
Mini project 1
2 Votes
why is this platform infested with web devs
1 Votes
App development
1 Votes